Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "StaticStack.h"
- int main(){
- StaticStack<int> num(6);
- num.push(10);
- num.push(20);
- num.push(30);
- num.push(40);
- num.push(50);
- num.push(60);
- num.view();
- cout<<num.top()<<endl;
- num.pop();
- num.pop();
- num.pop();
- num.pop();
- num.pop();
- num.view();
- cout<<num.top();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement