为什么我的程序不会跳出while循环??
#include <iostream>#include <string>
using namespace std;
int main()
{
string word;
while ( cin >> word )
cout << "word read is: " << word << '\n';
cout << "ok: no more words to read: bye!\n";
return 0;
}
输入my first c++ program 回车以后怎么不结束while循环?
我用dev-c++来调试的.