HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...
Actions
Task #555155
open相关算法之枚举变量创建
Start date:
Due date:
% Done:
0%
Estimated time:
Files
Updated by 王 黔单 over 8 years ago
- File 枚举.txt 枚举.txt added
- File 枚举变量创建.docx 枚举变量创建.docx added
Updated by 王 黔单 over 8 years ago
枚举变量:指用枚举类型定义的变量.变量和参数都可以定义为枚举类型.过程的返回值也可以是枚举类型。
枚举变量声明与赋值: 定义枚举类型后,可以声明该枚举类型的变量,然后使用该变量存储枚举元素的数值.
enum TerrainEnum {
Terrain1,
Terrain2,
Terrain3,
Terrain4,
Terrain5,
Terrain6,
TerrainEnum_MAX
};
TerrainEnum terrainType;
terrainType = Terrain1;
Actions