Give an idea of finding different letters in the string
hi, can someone give some idea on how to find the different letters in the string. for example :
Code:
for(int i = 0; name[i]; i++)
{
lowerCase = tolower(name[i]);//convert to lowercase
}
for example, input = Johnny
output will be = 5, as 'n' is repeated.
firstly, i convert it to lower case so it is case insensitive. can i use some other C library that will make this simple and easy?
would be really appreciate if someone show me an example. thank you