Hello everyone,
I'm kind of new to c++ but I've made a few things. I have a problem and was hoping someone could help.
when I have a piece of code like
if the user types spaces the program will just shut down. likePHP Code:
cout<< "Whats the food?";
cin>> food;
program: "whats the food? "
user: "pizza and salad"
the program would just shut off
however
program: "whats the food?"
user: "pizza.and.salad"
works fine
any solution would be great
thanks everyone!