#include "stdafx.h"
#include
#include
#include
using namespace std;
/************************
*STL堆栈类的使用实例
*********************/
int main()
{
stack intStack;
intStack.push (12);
intStack.push (23);
intStack.push (34);
intStack.push (45);
cout<<"The top element of the stack:"< cout<
cout<<"intStack element:"< while(!intStack.empty ())
{
cout< intStack.pop();
}
cout< return 0;
}
阅读(1588) | 评论(0) | 转发(0) |