阅读背景:

C ++使用int从列表中设置枚举

来源:互联网 

I am using a header file for character class in a game (doing it as a side project for experience). I have it working but it just feels like I'm doing this the long way. I ask for an 'int' to set the character class then set it based on the enum position using a switch statement. Is there a clearer, shorter way to do this operation? Am I doing anything here that would be considered bad practice?I am using a header file for character class in




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: