Advertisement
Guest User

Stack.h

a guest
Apr 15th, 2013
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #ifndef STACK_H
  2. #define STACK_H
  3.  
  4. struct Stack {
  5.   struct Link {
  6.     void* data;
  7.     Link* next;
  8.     void initialize(void* dat, Link* nxt);
  9.   }* head;
  10.  
  11.   void initialize();
  12.   void push(void* dat);
  13.   void* peek();
  14.   void* pop();
  15.   void cleanup();
  16. };
  17. #endif // STACK_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement