C 程序中可能不得不这样做。不过C++ 程序员恐怕都不喜欢这种方法。替代方案是命名空间: namespace Color { enum Type { RED=15, YELLOW, BLUE }; };.
確定! 回上一頁