To convey the intended use of a variable
To convey the intended use of a variable
Syntax:
Example:
To convey that a variable can be one of serveral possible values
Syntax:
Example:
Example:
typedef will reduce typing out enum each time, but will put your enum_type_name into the global namespaceExample:
switch statement is far more expressive than using integers