博客:http://blog.csdn.net/wallwind/article/details/6858634
#include <stack>
stack<int> s;
s.push(10);s.push(20);
s.push(30);
s.push(40);
cout<<s.top()<<"\n";
s.push(100);
s.push(120);
s.pop();
while (!s.empty())
{
cout<<s.top()<<"\n";
s.pop();
}
cout<<endl;
int m;
cin>>m;