|
|
|
|
|
|
|
Figure 2-3
C++ Preprocessor |
|
|
|
|
|
|
|
|
the angle brackets < > are required. They tell the preprocessor to look for the file in the standard include directorya location in the computer system that contains all the header files that are available to C++ programmers. In Chapter 3, you will see examples of including header files other than iostream.h. |
|
|
|
|
|
|
|
|
Program Entry, Correction, and Execution |
|
|
|
|
|
|
|
|
Once you have the program on paper, how do you get it into the machine? The most common way is to enter it on the keyboard of a computer or terminal. In this section, we examine the program entry process in general. You should consult the manual for your specific computer to learn the details. |
|
|
|
|
|
|
|
|
The first step in entering a program is to get the computer's attention. With a personal computer, this usually means turning it on and possibly inserting a disk. |
|
|
|
|
|
|
|
|
Larger computers (mainframes) are left running all the time. You must log on to a mainframe to get its attention. This means entering a user name and a password. The password system protects information that you've stored in the computer from being tampered with or destroyed by someone else. |
|
|
|
|
|
|
|
|
Once the computer is ready to accept your commands, you tell it that you want to enter a program by typing a command that tells it to run the editor. As we discussed in Chapter 1, the editor allows you to create and modify programs by entering information into an area of the computer's secondary storage called a file. |
|
|
|
 |
|
 |
|
|
File A named area in secondary storage that is used to hold a collection of data; the collection of data itself. |
|
|
|
|
|