Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
正如我在 GCC 等其他地方所提到的那样,在 VC++ 中使用“短枚举”或“字符枚举”会非常方便。VC++ 中是否有一些选项可以允许这样做?
你可以使用类似的东西
enum name : char { values }
但这是一个特定于 VC 的扩展。不确定 VC 中是否有对此的标准化支持。