Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include<ctype.h>
- #include<cmath>
- #include<iomanip>
- #include <vector>
- #include <algorithm>
- #include <queue>
- #include <stack>
- using namespace std;
- int main()
- {
- stack<int> s;
- s.push(1);
- s.push(2);
- s.push(3);
- s.push(4);
- while(!s.empty()) {
- cout << s.top() << endl;
- s.pop();
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement