标签:class blog code http ext get
#include <iostream> #include <string> #include <sstream> using namespace std; int main() { string word; string line; while (getline(cin,line)) { istringstream istr(line); while(istr>>word) cout<<word<<"#"; cout<<endl; } return 0; }
注释:上述的两个操作,相当于在输入流中加入了eof操作
windows和linux下结束循环的操作,布布扣,bubuko.com
标签:class blog code http ext get
原文地址:http://blog.csdn.net/zfs_kuai/article/details/32730511