MUstar

IoT C++ 09/12 - Project2_stack.h

Sep 12th, 2017
127
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. struct customer{
  5.     char fullname[35];
  6.     double payment;
  7. };typedef customer Item;
  8.  
  9. class Stack{
  10. private:
  11.     int top;
  12.     enum {MAX = 5};
  13.     Item items[MAX];
  14. public:
  15.     Stack();
  16.     bool isempty() const;
  17.     bool isfull() const;
  18.     bool push(const Item & item);
  19.     bool pop(int delnum);
  20.     void list(void);
  21.     void stack_del(char *name);
  22.     int payment(void);
  23. };
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×