Advertisement
Guest User

Untitled

a guest
Apr 6th, 2013
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #ifndef STACK_HPP
  2. #define STACK_HPP
  3.  
  4. #include <iostream>
  5. #include <iomanip>
  6.  
  7. using namespace std;
  8.  
  9. class STACK
  10. {
  11.   public:
  12.     STACK();
  13.     ~STACK();
  14.     void Push(int value);
  15.     void Pop(int &value);
  16.     int Is_Empty();
  17.  
  18.   private:
  19.   protected:
  20.     struct NODE
  21.     {
  22.       int value;
  23.       NODE * link;
  24.     };
  25.  
  26.     NODE * Head;
  27. };
  28.  
  29. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement