摘要: 一、代码: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;}二、编译 阅读全文
posted @ 2013-03-20 23:30 Davim 阅读(1132) 评论(0) 推荐(1) 编辑