This section contains Enumeration topics.
Name |
Description |
An enumeration data type is used to provide mnemonic identifiers for a set of integer values. For example, the following declaration: | |
The rules for expressions involving enum types have been made stricter. The compiler enforces these rules with error messages if the compiler switch -A is turned on (which means strict ANSI C++). Assigning an integer to a variable of enum type results in an error: |
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|