Hello,
How could I compare command-line arguments to strings? I've got the code below that works with single characters. What should I change to make it work with strings?
SeronCode:int main(const int argc, char* argv[]) { bool v = false; for(int i = 1; i < argc; i++) { if(*argv[i] == 'v') v = true; }