Is there something that can check if a string or character variable contains a letter?
For example :
char x;
cout << "Type a word : ";
cin >> x;
if ( ) { // if x has the letter a in it then : //
cout << "Your word contains the letter a in it!" << endl;
}
Not related to C::B in any way and therefore violating our forum rules.
Topic locked !