Write your question here.
Ok so basically all I want to be able to do is have the user input something,and then check through whatever they typed to see if they typed a certain word and then if they did type that certain word, do something.
1 2 3 4 5 6 7 8 9 10 11 12
vector <string> directions;
directions.push_back("NORTH");
directions.push_back("EAST");
directions.push_back("SOUTH");
directions.push_back("WEST");
string input;
cin >> input;
if (//input has North){
//do this
}
Mehakb that is almost what I am looking for, it does help but the problem is it only works if the person just types in north, south, east, west, they cant type "go north" or anything like that