```
string line;
string s[100]; //字符串数字法,并不是字符数组
//getline(cin,s);
//stringstream ssin(s);
/*
while(cin >> s){
res = s + " " + res;
}
cout << res << endl;
*/
int cnt=1,i=1;
while(cin >> line){
s[i] = line;
i++;
}
while(i>0){
cout << s[i-1] << " ";
i--;
}
```