我说得是不用if语句,是直接从while退出哈引用 8 楼 lovesi3344 的回复: if(!(cin>>temp)) break; if((cin>>temp) == ' ') break; if((cin>>temp) == '\0') break; 引用 7 楼 xie_kun 的回复: 原题是 char temp; while(cin>>temp) { switch(temp) 。。。。。; } 怎么退出while这个循环
65,210
社区成员
250,518
社区内容
加载中
试试用AI创作助手写篇文章吧