8.7. Enumerated Types

8.7. Enumerated Types

8.7.枚举类型

Enumerated (enum) types are data types that comprise a static, ordered set of values. They are equivalent to the enum types supported in a number of programming languages. An example of an enum type might be the days of the week, or a set of status values for a piece of data.

枚举(enum)类型是包含静态的,有序的一组值的数据类型。它们等效于多种编程语言支持的枚举类型。枚举类型的示例可以是星期几,或一组数据的状态值。

发布了341 篇原创文章 · 获赞 54 · 访问量 88万+

猜你喜欢

转载自blog.csdn.net/ghostliming/article/details/104662801
8.7
今日推荐