Changes between Version 3 and Version 4 of addnewenum
- Timestamp:
- 11/15/14 14:25:15 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
addnewenum
v3 v4 1 1 == Introduction == 2 2 3 Each model input is assigned an Enum in order to be found quickly (integers are easier to compare than strings).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 ==