Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 6th, 2013  |  syntax: C++  |  size: 0.36 KB  |  views: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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
clone this paste RAW Paste Data