error: switch quantity not an integer

后端 未结 7 869
你的背包
你的背包 2020-12-11 02:11

I have researched my issue all over StackOverflow and multi-google links, and I am still confused. I figured the best thing for me is ask...

Im creating a simple co

相关标签:
7条回答
  • 2020-12-11 02:40

    Not sure which mighty Internet you've been reading, but C++ doesn't allow strings in switch statements. (C# does, though.)

    You need to convert your switch statement to a chain of if-else if-else statements that test equality.

    0 讨论(0)
提交回复
热议问题