So I have a program that I need to check what argv[1] is, depending on that it does something; however, I think the program is not checking it correctly, because I am putting in START but it skips what is in the if statement
CODE:
The value of argc should be checked first, to see whether any parameters are present.
To use strcmp(), put #include <cstring> . If the strings are equal, the function returns zero, it is sufficient to use the ! operator in order to test for this: