
Lesson 1-5: Running a Program with an Error
Overview of Programming and Problem Solving | 15
Name __________________________________________ Date _______________________
Section _________________________________________
Exercise 1: Compile program Error in file error.cpp. Which error message you get and what
happens depend on which C++ compiler you are using. Describe the error message, and tell what
happened.
Exercise 2: Go back into the editor and correct the error. (There is a semicolon missing.) Compile
and run your program. What is the output?
78828_CH01_DaleLab 5/20/09 1:39 PM Page 15