Basicaly i have a string with text like "who are you". After using cin to get a users input, i use an if statment to see if the input and a string match. when i put the words together like this "whoareyou" it works, but otherwise it fails.
string a = "Hello";
string b = "hello";
string c = "Is anybody there";
string d = "is anybody there";
if (name == a || name == b || name == c || name == d) {
cout<<"yes\n";
Also, instead of having two comparison for the capital at the beginning of the sentence, just convert the entire user string to upper or lower and compare it to an upper/lower string.