有关 while 循环的问题
#include <iostream>#include <cstdio>
using namespace std;
int main()
{
char ch;
int i=1;
while(scanf("%c",&ch)){
if(ch!=' ') {
cout<<ch;
i++;
}
}
return 0;
}为什么调试时,电脑总是要求输入字符?
我结束输入时按啦“crtl"+"z",为啥屏幕出现“ ’”而且结束不了?
2014-05-24 20:24
2014-05-24 22:09
2014-05-25 23:02
2014-05-25 23:04

2014-05-26 08:08
2014-05-26 15:06
2014-06-02 10:54
2014-06-02 10:55