one of enum , enum class , or enum struct, (since C++11) ... enum Color { red, green, blue }; Color r = red; switch(r) { case red ...
確定! 回上一頁