inputs and spaces... help please!
I am trying to make a text based game and was wondering 2 things:
1) what type of input i sould use to allow the user to input spaces
2) How i could break apart that input BY the spaces
The user inputs "kill dragon"
I want the program to do this:
cin >> input //not unsing cin, because that does not work
if(strcmp(input,"kill ____") == 0)
kill_destination = input - "kill";
and so on.... HOW DO I DO THIS???