For an assignment, I am required to have command line arguments for my C program. I\'ve used argc/argv before (in C++) without trouble, but I\'m unsure if C style strings ar
The line
if(argv[1]=="-e"){
compares pointers, not strings. Use the strcmp function instead:
if(strcmp(argv[1],"-e")==0){