If char/string contains a letter
Is there something that checks if a character or string has a specific letter inside it? For example :
1 2 3 4 5 6 7
|
char x;
cout << "Type a word." << endl;
cin >> x;
if ( ) // if x has the letter a in it //
{
// do this //
}
|
Topic archived. No new replies allowed.