Image

Imagebananahz wrote in Imagecpp

Hello, I am using a Counter class to count strings inputed by the user.

it should be able to output the follow depending on the string inputed:

a. The number of consonants in the string.
b. The number of vowels in the string.
c. The number of white space characters in the string.
d. The number of "other" characters in the string.
e. The total number of characters in the string.

to determine each of those, should I use a switch statement, or what?

thanks