#include#includeusing namespace std;int main() { string word,longWord; cout < "请输入英文句子,按ctrl+z后按下回车结束输入:\n"; while (cin >> word) { if (word.length() > longWord.length()) longWord=word; } cout << "最长单词是"<