Tips for Next Week's Lab
Command line arguments; Makefiles
- Meaning and use of
argc and argv[0], argv[1], ...
- Read command line argument(s) and convert to integer/floating point number
- Test if conversion was successful and produce error message in case of wrong user input
prompt$ ./add3 1 2 a
./add3: found non-numerical argument
|
- Write a
Makefile to build executables for two of the programs
|