To pass in arguments to your program you use arc and argv which are the only parameters you are allowed to pass to the main() method.
Argc is the number of arguments passed to your program while argv is a pointer to an array of strings which contain the individual arguments. One point to note is the first argument is ALWAYS the name of the program so if you call your program like this:
myprog foo
then argv[0] will equal "myprog" and argv[1] will equal "foo".
Once you know the number of arguments it's dead easy to loop thorough and process each one.
I would also recommend that you get yourself a decent book if only for refernce if nothing else, there are plenty of free books/tutorials on the 'Net which you can use -
this is a decent book which takes you through learning C++ and is divided up so it shouldn't be too hard to learn from.
EDIT: just to clarify, to pass arguments to your program declare your main method like this:
int main(int argc, char *argc[])
[edited by - Spudder on May 12, 2004 8:01:54 PM]