问题描述:

使用switch结构时出现警告"enumeration value ‘xxxxx’ not handled in switch"
"enumeration value 'xxxxx' not handled in switch"警告

解决方案:

在switch结构末添加语句 default:break;
用来处理其他情况
"enumeration value 'xxxxx' not handled in switch"警告

相关文章:

  • 2021-10-11
  • 2021-05-26
  • 2022-01-20
  • 2021-08-27
  • 2021-04-19
  • 2022-12-23
  • 2022-01-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
  • 2021-10-21
  • 2021-08-13
  • 2021-06-19
相关资源
相似解决方案