
Prelab Activities
Review
In Chapter 2, we showed how identifiers are constructed and said they name data
types, data objects, and actions. We used the following three statements in program
Rhyme:
const char SEMI_COLON = ';';
const string VERB1 = "went up "
string firstLine;
The first named a char constant, SEMI_COLON, and stored a semicolon into it. The
second named a string constant and stored the string "went up" into it. The third
named a string variable firstLine, into which a value of type string can be
stored.
As we said in Chapter 2, four integral types can be used to refer to an integer
value: char, short, int, and long. Although these types represent ...