Here I've used the new keyword enum, given the enum a name, and specified the allowed values. Grade then becomes an enumerated type, which you can use in a manner shown in Listing 3.
在这里,我使用了新的关键字enum,为enum提供了一个名称,并指定了允许的值。
Here I've used the new keyword enum, given the enum a name, and specified the allowed values. Grade then becomes an enumerated type, which you can use in a manner shown in Listing 3.
在这里,我使用了新的关键字enum,为enum提供了一个名称,并指定了允许的值。
应用推荐