Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- struct customer{
- char fullname[35];
- double payment;
- };typedef customer Item;
- class Stack{
- private:
- int top;
- enum {MAX = 5};
- Item items[MAX];
- public:
- Stack();
- bool isempty() const;
- bool isfull() const;
- bool push(const Item & item);
- bool pop(int delnum);
- void list(void);
- void stack_del(char *name);
- int payment(void);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement