c++ - How do I compare the s[] to char vowels? -


int main() {      string s;     //char a[5][8];     getline(cin,s);     int m= s.length();     char a[m][8];     //a == &city[0];     //s     char vowels[]={'a','e','i','o','u'};     (int = 0 ; < m ; ++i)     {         if (s[i] !=*vowels)//, 'e' , 'i' , 'o' , 'u'))         {          s[i] = tolower(s[i]);         }         else //if (s[i]=vowels[5])         {          s[i]=toupper(s[i]);         }        cout << s[i] ;     }      return 0;  } 

i trying make vowels in uppercase , consonents lowecase, code not working whats wrong this?


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -