This is probably a lot more simple than I am making it, but I am having trouble parsing a command line argument that is not given a size argument (i.e. I'm asking for int main(char* argv[]) rather than using int main(int argc, char* argv[]) ). I suppose this is really more of a two part question, but I was wondering (1) can you run a program with command line arguments that look like the following?:
testProgram arg1 arg2 arg3
where arg1, arg2, and arg3 would be placed into argv[], and (2) if you can, how do you cycle through each argument so that you might be able to use them within the program?
I know this probably seems very arbitrary, but I'm trying to understand better how command line arguments work and how to use them properly.
Thanks for the help and insight.