关于break;#include <iostream>using namespace std;int main(){char ch;while(cin>>ch){switch(ch){case 'a':cout<<"!\n";default:break;}}cout<<"bye!\n";return 0;}这个break无效,怎么才能输入a之外的值的时候跳出循环啊?[解决办法]这个break只能跳出switch,不能跳出while