In my command line interface like app, I want to make a detection if there was something written after the "command". One example is that if I wanted to make a directory with the "mkdir" command in my app, I want to know what is after it, like if I wrote "mkdir Directory", the mkdir char and whatever is after it are 2 different arguments, and I would make the directory that has the name of whatever the second argument is. I know it is wordy, but I am not the best at wording things. I have searched up on how to do it, but I can't word things well. this is my code:
char command[] = "";
char args[] = "";
if(command=="mkdir"){
//do what I want it to do which is to tell if args are put after command
}
else{
cout << "The command does not have the right parameters. Sorry."
}
cout << "A:/>";
cin >> command;