The goal of this module is to write programs with functions, strings, and command line arguments to gain experience with their usage.
See the course web page module2 for the full directions.
The code for this exercise is in the exercise1
directory. When you finish and test your code, write below how your code works, and explain how the input is received from the command line via argc
and argv[]
.
The code for this exercise is in the exercise2
directory. Explain how the main.cpp code has access to the functions printEven()
and printOdd()
. Explain both where the function declarations are stored and the steps the compiler takes to build the program
executable.