I'm suppose to execute the program in cmd prompt like this:
fifo.exe data.txt
However, I cannpt even get the program name which is fifo.exe.
I found out that argc (parameter of main) does not even go to 1.
It shows -1 instead.
Why is this so?
Anyone can help me?!?!
I actually created a class right above the main program.
Below is how i type the main:
int main (int argc, char *argv[])