How do you check a line of text using the cin.getline function and count the occurences of each letter of the alphabet.
thanks for your help
How do you check a line of text using the cin.getline function and count the occurences of each letter of the alphabet.
thanks for your help
After you got the string you want to check ( doesn't matter what you were using to get it), you can check it char by char from the start of the string to the end and count every time you run into the char you are looking for.
1 rule of the Samurai Code: if you have nothing to say, don't say anything at all!