[求助]本人是菜鸟初学,请大侠指点一下,谢谢!
#include <iostream>#include <string>
using namespace std;
int main()
{
string word;
while(cin >> word )
cout<<"word read is:"<<word<<endl;
cout<<"ok:no more word to read:bye!\n";
}
我输入子符串 wxa6687 t77529 z123 执行结果是 word read is:wxa6687
word read is:t77529
word read is:z123
ok:no more word to read:bye!\n显示不出