请解惑!关于while(cin >> word)
关于程序:
#include<iostream>
#include<string>
int main()
{string word;
while (cin >> word)
cout << "word read is :" << word << '\n';
cout << "ok: no more words to read : bye! \n";
return 0;
}
任何理解: while (cin >> word) 语句?
什么时候开始第2次,第3次...循环,又是什么时候结束循环呢? 求解!谢谢