Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- struct Cub
- {
- int st[1001], top;
- void Push(int x)
- {
- st[++top] = x;
- }
- void Pop()
- {
- if( top >= 0)
- {
- top --;
- }
- }
- int Top()
- {
- return st[top];
- }
- int Empty()
- {
- return (top < 0);
- }
- void Init()
- {
- top = -1;
- }
- int Size()
- {
- return top+1;
- }
- };
- Cub A;
- int main()
- {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement