I am having an issue with the statement "Both the input and output files' names should be read from the command line." I don't understand what this means or what I need to do. Thank you for the help.
You need to grab the names of your targets off of the command line. The first argument to main is an integer telling your application how many entries are available to be read off of the command line. The second one is a zero-indexed array of char pointers to c-strings that were passed to your application from the shell. The first on of these is usually the fully qualified path to the binary, any thing after that is\are space delimited entries on the command line. You would treat these in main basically the same way you would treat any other arguments to a function.
Thank you for your reply. However, I am still not clear on what you mean. Is there an example you can give me that might make it clear to me? Thank you again.
These will be the same. Here the constructor for the type std::string takes the char pointer, casts it to a const char pointer implicitly, and makes your std::string object. As mentioned before, this one should be the fully qualified path and name of your compiled executable.
If you use Windows, press the windows+r keys, and type "cmd". Or select start->run and type "cmd". That will bring up a console window where you can type commands on the command line. in your example, you type the name of the program (including full or relative path if necessary) followed by whatever parameters the program expects, separated by spaces.