I am confused even as to how I could ask this question. Essentially, when I attempt to put a space in between two words in a quotation in an if statement and the user ends up typing that quotation with a space, it doesn't end up working. It's hard to explain, you may have not even got what I just said. Just take a look at my code and it will all make sense.
cout << "Type which section you would like to go to: " << flush;
string section;
cin >> section;
if (section == "Hot Coffees" || section == "hot coffees" ) {
cout << "Here is the list of all the hot coffees we sell." << endl;
Now if the user attempts to type 'Hot Coffees' or 'hot coffees, for some reason it is not printing out 'Here is the list of all the hot coffees we sell.' It only works if I remove the space or replace 'Hot Coffees' with 'Coffee'. Did I do something wrong? Does C++ not allow for spaces in these quotations? Thank you!