In the following code:
void main(int argc, char *argv[]) {
if (argc == 3 )
if (argv[1] == 'c') { //doesn't work
int m;
m = atoi(argv[2]); //doesn't work
}
}
The parameters are c 201.
The lines marked give me an error. I think I know why but I don't know how to resolve it or how to bypass it...
Can someone help me, please...
void main(int argc, char *argv[]) {
if (argc == 3 )
if (argv[1] == 'c') { //doesn't work
int m;
m = atoi(argv[2]); //doesn't work
}
}
The parameters are c 201.
The lines marked give me an error. I think I know why but I don't know how to resolve it or how to bypass it...
Can someone help me, please...