Electrical and Computer Engineering
24 of 30
UAH
CPE 112
Naming Program Elements
•Identifiers are used in C++ to name things – identifiers are made up of letters, digits, and the underscore character (_), and must begin with a letter or an underscore.
•Valid identifiers Invalid identifiers
• sum_of_squares 40hours
• J9 Get Data
• box_22A box-22
• GetData cost_in_$
• Bin3D4 int
• count