Electrical and Computer Engineering
28 of 30
UAH
CPE 112
Matters of Style
•Warning: C++ is case-sensitive – Style and style are not the same
•Capitalization Conventions
–Identifiers representing variables begin with a lower-case letter and have each successive English word capitalized, e.g., lengthInYards
–Names of programmer-written functions and program-mer-defined data types begin with capital letters and have each successive English word capitalized, e.g., CalcPay(payRate, hours, wages)
–Identifiers representing constants are all capitals, with words separated by underscores, e.g., MAX_LENGTH