C++ How to count number of spaces in a text

preview_player
Показать описание
Simple trick on how to count number of spaces as well as number of characters in user input.

Music: "Podington Bear - Arboles"
Рекомендации по теме
Комментарии
Автор

why use cin.get(characters) twice? i mean once used earlier then why use it under ++totalchars

mohdfarhan
welcome to shbcf.ru