#include <iostream> #include <vector> #include <string> using namespace std; int main() {     vector<string> s;     string in;     while (cin >> in)     {         s.insert(s.begin(), in);     }     for (vector<string>::const_iterator i = s.begin(); i != s.end(); i++)     {         cout << *i;         if (i+1 != s.end())         {             cout << " ";         }     }     system("pause");     return 0; }
点赞 10

相关推荐

04-25 18:13
五邑大学 Java
后来123321:大二两段实习太厉害了,我现在大二连面试都没有
点赞 评论 收藏
分享
点赞 评论 收藏
分享
牛客网
牛客企业服务