I'm making a program where there is a lot of commands. To get a command from the user, I use:
1 2
string x;
getline (cin, x);
And that works fine and all, but I don't like that if the user types, say "action", that it would have a different effect than if the user typed "Action", or "aCtIoN". So my question is, is there a way to sort of convert strings to all caps, or no caps, so I would only have to program the one string, or any other way?