枚举
传统的枚举写法是 enum ERType {ZERO=0, ONE, TWO};,但现代代码则写作 enum class ERType {...};。在现代写法中,值在使用时必须完全限定,如 ERType::TWO

Last modified: Friday, 17 January 2025, 9:55 PM