C++ PROGRAM STRUCTURE
- a special name given to a function or data object; used to refer to
that object throughout the program
- identifiers that have special meanings in the language
- specific set of data values along with a set of operations for those values
statement that places an identifier with a data object, function, or data type
- location in memory, referenced by an identifier,
in which a value can be changed and stored
- statement that stores the value of an expression into a variable
Assignment [due at beginning of class tomorrow]
Answer the following review questions, based on your reading of Chapter 2.
- List two rules for using identifiers
- List three reserved words introduced in Chapter 2
- Write an example of a value for the following data types:
char, int, floating point
- What is the difference between a constant and a variable?
- All your C++programs will use the variable cout. Why?