Switch statement using or

前端 未结 7 2360
时光说笑
时光说笑 2020-12-10 10:29

I\'m creating a console app and using a switch statement to create a simple menu system. User input is in the form of a single character that displays on-screen

相关标签:
7条回答
  • 2020-12-10 11:06
    switch (toupper(choice))
    {
      case 'Q':...
    }
    

    ...or tolower.

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