Can you compare strings with if, or do you have to use something else? Can you compare strings at all? Im attempting to write a console program just for fun. Eventually I want it to be able to move around files and such but im not even close to that point yet. Right now im adding basic commands to see if I even have the knowledge to complete it.
int recognition (string command) {
if (command == add) {
add();
};
};
That is the recognition function. Im going to use it to recognize a command that a user enters(the only command right now is add) but to do that I need to compare the string command to see if it is add. Thanks in advance for the help.