I need to write a program that will take input from the command line. If I have an executable named a.x the user would type something like
./a.x -a 1 2
or
./a.x -m 1 2
at the command line and then my program would put the three values in variables and use the values in the program. I've been programming for a while so I can write the program I need, I just need to know how to use the command line input.
Thanks for any help
-Eric
./a.x -a 1 2
or
./a.x -m 1 2
at the command line and then my program would put the three values in variables and use the values in the program. I've been programming for a while so I can write the program I need, I just need to know how to use the command line input.
Thanks for any help
-Eric