标签:ret main ++ 堆栈 end abs ace ring turn
#include <stack>
#include <string>
using namespace std;
int main()
{
stack<string> ss;
string s;
while (cin >> s)
{
ss.push(s);
}
while (!ss.empty())
{
cout << ss.top();
ss.pop();
if (!ss.empty())
cout << ‘ ‘;
}
cout << endl;
return 0;
}
标签:ret main ++ 堆栈 end abs ace ring turn
原文地址:https://www.cnblogs.com/xufeng123/p/12628865.html