1.1 Writing a Simple C++ Program (4)

2013-10-07 16:13:50 · 作者: · 浏览: 65

EXERCISES SECTION 1.1.1

Exercise 1.1: Review the documentation for your compiler and determine what file naming convention it uses. Compile and run the main program from page 2.

Exercise 1.2: Change the program to return -1. A return value of -1 is often treated as an indicator that the programfailed. Recompile and rerun your programto see how your system treats a failure indicator from main.