- 关键字:
Emum 自定义名称{a = 1
b = 2,
c = 3,
d = 4}box;
定义好之后可以直接通过box关键字调用
ennum bag{book1 = "百年孤独",
book2 = "时间简史",
book3 = "简爱"}book;
book1;
book2;
a = book.book1;
标签:box,数据类型,book2,C++,book1,枚举,book
From: https://www.cnblogs.com/lgb114/p/16862565.html