Enumeration variables

enum:

  enum keyword, type name, an enumeration of constant scale.

    Day enum {mon, Tue, wend, tower, Fri, satur, sun};

Instructions:

  enum Day day=mon;

  The first element of the enumeration constants table among a default value 0, if the current element has not been assigned a value of one of the preceding

Plus a constant value. Enum constant and can be represented only by way of an identifier can not be expressed as an integer or a string type

type.

Guess you like

Origin www.cnblogs.com/wangkaia/p/12004959.html