Home Segments Index Top Previous Next

605: Mainline

Evidently, you need to have your program do the following:

To accomplish this work, you can use a for statement to iterate over the appropriate command-line arguments, an if statement to test for flag-marking hyphens, another for statement to iterate over flag characters, and a switch statement to look for specific flags and to take appropriate variable-assignment actions.