摘要:
一、代码:read-inUnknownNumStr.cc ,功能:输出输入所有的字符串直到遇见文件结束操作符/*read in the unknown number string object*/#include <iostream>using namespace std;int main (){ string word; //read until end-of-file,writting each word to a new line while (cin >> word) cout << word <<endl; return 0;}二、编译 阅读全文