error: switch quantity not an integer

后端 未结 7 880
你的背包
你的背包 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:30

    The compiler error tells you everything you need to know. Only integral types may be compared in switch statements.

    I'm not sure which "mighty internet" told you otherwise, but it was mighty wrong.

提交回复
热议问题