64,662
社区成员
发帖
与我相关
我的任务
分享
#include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
istream &f(istream &i)
{
string s;
while(i>>s){
cout<<s<<" ";
}
i.clear();
return i;
}
int main(int argc, char *argv[])
{
f(cin);
system("PAUSE");
return 0;
}