#include<iostream>
#include<stdio.h>
#include<stack>
using namespace std;
void main(){
stack<int>x;//stack name is x
for(int i=0;i<=4;i++)
x.push(i);
while(!x.empty()){
cout << x.top() << endl;
x.pop();
}
}
No comments:
Post a Comment