// stack.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <list>
#include <stack>
#include <algorithm>
using namespace std;
int main(int argc, char* argv[])
{
stack<int, list<int> > istack;
istack.push(1);
istack.push(3);
istack.push(5);
istack.push(7);
cout<<istack.size()<<endl;//4
cout<<istack.top()<<endl;//7
istack.pop();
cout<<istack.top()<<endl;//5
istack.pop();
cout<<istack.top()<<endl;//3
istack.pop();
cout<<istack.top()<<endl; //1
cout<<istack.size()<<endl;//1
//printf("Hello World!/n");
return 0;
}