Goals
When we finish this chapter, you should be able to :
- Understand how a C++ program is composed of one or more subprograms.
- read syntax templates in order to understand the
formal rules of the governing C++ programs.
- create and recognize legal C++ identifiers.
- declare named constants and variables of type
char and string.
- distinguish reserved words in C++ from user defined types.
- assign values to variables.
- construct simple string expressions made up of constants,
variables, and the concatenation operator.
- construct a statement that writes to an output stream.
- determine what is printed by a given output statement.
- use comments to clarify your program
- construct simple C++ programs
- learn the steps involved in entering and running a program.