next up previous
Next: Variable Types Up: Overview of C++ Previous: Activity

Language Elements

In this section we will consider in some detail the character set and its use in constructing numerals, variables and names of functions and operators. The character set used in C++ statements are shown in table 2.1 below


 

 
Table 2.1: C++ Characters
letters a,b,c,d,....z
digits 0,1,2,...,9
special characters +,-,*,/ , ( ), ;, ", $


Beyond the general form of a program, perhaps no other construct is as important to a programming language as the assignment of a value to a variable. A variable is a named memory location that may be assigned a value. Further the value of a variable may be changed one or more times during the execution of a program.


 

Yousef Haik
2/23/1998