By default, the first enumerator is assigned the value zero. Each subsequent enumerator is assigned a value one greater than the value of the enumerator that immediately precedes it.

 
  • 默认地,第一个枚举成员赋值为0,后面的每个枚举成员赋的值比前面的大1。
今日热词
目录 附录 查词历史