|
|
char
, as its name tells you, can contain only one single character. You cannot place more than one in it. You should use strings for that.
|
|
If (s==w) && (s==a) |
string::find
to check if the input contains a character without having to parse the string yourself. The last option would probably be the easiest, but you'll need to change your "ww" option to something else, otherwise input.find("w")
will return true for the inputs 'w' and "ww" without being able to differentiate them.
|
|