ISO C++ forbids comparison between pointer and integer?
We have to write a program that counts vowels in a file, and I keep getting the error message
"ISO C++ forbids comparison between pointer and integer" on line 27...
25 bool isvowel(char letter)
26 {
27 if (letter=="A" || letter=="E" || letter=="I" || letter=="O" || letter=="U" )
28 return true;
29 else
30 return false;
31 }
what does the error mean and how do I fix it?
|