```c++
using namespace std; int main(){ string s; while(cin>>s) cout<<s<<” “; return 0; }
cin读入字符串不读入空格