This question already has an answer here:
I have the following program:
cout << "enter yes if you like pizza" << endl;
string a;
cin >> a;
if ( a == "yes" ) {
cout << "you are cool" << endl;
}
the problem is when the input is for example "Yes" "yAs" ... i have seen solutions for this that are for c# but they don't work for me...
Aucun commentaire:
Enregistrer un commentaire