Hi I have the following code:
#define INPUT_FILE "-i"
int main(int argc, char* argv[]) {
....
}
is there any way in C++
to compare between strings in argv[]
and INPUT_FILE
?
I tried
strcmp(argv[1],INPUT_FILE)
It compiles but return false
each time.
Thanks !