Changes between Version 4 and Version 5 of addnewenum
- Timestamp:
- 11/15/14 14:26:05 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
addnewenum
v4 v5 1 1 == Introduction == 2 2 3 The idea is that comparing integers in C++ is easier and faster than comparing strings. So each model input is assigned an enum. In the code you will see `IceVolumeAboveFloatationEnum` but the code interpret this word as the integer 682. Each enum has a number associated to it automatically by the compiler. See this [ [http://en.wikipedia.org/wiki/Enumerated_type wikipedia page]] for more info.3 The idea is that comparing integers in C++ is easier and faster than comparing strings. So each model input is assigned an enum. In the code you will see `IceVolumeAboveFloatationEnum` but the code interpret this word as the integer 682. Each enum has a number associated to it automatically by the compiler. See this [http://en.wikipedia.org/wiki/Enumerated_type wikipedia page] for more info. 4 4 5 5 == Add a new Enum ==