Please complete the following exercises:
prog abc.txt def -r xyz
(In this case there are four command-line parameters in addition the program name. See the text, pages 626-628 for more information.)
Your program should convert each parameter to a string, concatenating them into a single string and separating the original parameters by vertical bar ('|') characters. The final string should be output to cout. In this example, the program output would be:
prog|abc.txt|def|-r|xyz
Submit your program source code.
The assignment (in one text file) should be submitted by email to Dr. Sebern. Please keep a backup copy in case your work gets lost in the email system. Please be sure to include your name in the assignment text file.
This assignment is due before the start of class on Monday of week 7.
If you have any questions, or any part of the assignment is unclear, please consult the instructor.
This page was last updated on April 12, 1999; send comments to Mark Sebern.