大家看看我的程序
#include <iostream>
#include <ctype.h>
using namespace std ;
int main()
{
int bCnt = 0 , tCnt = 0, nCnt = 0;
char ch;
while ( cin.get(ch))
switch ( ch )
{
case ' ' : ++bCnt;
break;
case '/t': ++tCnt;
break;
case '/n': ++nCnt;
break;
}
cout << "Number of blanks" << 'bCnt' << "\n"
<< "Number of tabs" << tCnt << "\n"
<< "Number of newlines" << nCnt << "\n";
return 0;
}
while ( cin.get(ch))输入什么字符才使它跳出while语句?我输入0不可以啊 !