使用switch case. 這個方法應該是最容易想到的方法了,以下是程式的範例:. enum EValue { KZero, KOne, KTwo }; const char* ToString(EValue value) ...
確定! 回上一頁