SHARE
TWEET

Untitled

a guest Apr 6th, 2013 29 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
Want to get better at C++?
Learn to code C++ in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top