#include %26lt;iostream%26gt;
using namespace std;
bool isVowel(char c)
{
           if (c == 'a' ||
 c == 'e' ||
                c == 'i' ||
 c == 'o' ||
 c == 'u' ||
 c == 'A' ||
 c == 'E' ||
 c == 'I' ||
 c == 'O' ||
 c == 'U' ||)
 return true; 
 else
  return false;
}
Whats wrong it won't run? C++?
Remove the last || from after the 'U'. It's not needed.
Sorry, I should have made that more clear when I answered your other question.
Reply:You have an extra || after your 'U'
Subscribe to:
Post Comments (Atom)
 
No comments:
Post a Comment