Project

Profile

Help

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...

Task #555155

open

相关算法之枚举变量创建

Added by 庄 宇舟 over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
L组任务
Start date:
Due date:
% Done:

0%

Estimated time:

Files

枚举.txt (931 Bytes) 枚举.txt 王 黔单, 2016-05-18 11:37 PM
枚举变量创建.docx (16.1 KB) 枚举变量创建.docx 王 黔单, 2016-05-18 11:37 PM
Actions #2

Updated by 王 黔单 over 8 years ago

  • Status changed from New to Resolved
Actions #3

Updated by 王 黔单 over 8 years ago

枚举变量:指用枚举类型定义的变量.变量和参数都可以定义为枚举类型.过程的返回值也可以是枚举类型。
枚举变量声明与赋值: 定义枚举类型后,可以声明该枚举类型的变量,然后使用该变量存储枚举元素的数值.
enum TerrainEnum {
Terrain1,
Terrain2,
Terrain3,
Terrain4,
Terrain5,
Terrain6,
TerrainEnum_MAX
};
TerrainEnum terrainType;
terrainType = Terrain1;

Actions #4

Updated by 王 黔单 over 8 years ago

这是来自QQ邮箱的假期自动回复邮件。你好,我会尽快回复。

Also available in: Atom PDF