Advertisement
Guest User

cppLib.h

a guest
Apr 15th, 2013
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. #ifndef CPPLIB_H
  2. #define CPPLIB_H
  3.  
  4. struct Stash {
  5.   int size;      // Size of each space
  6.   int quantity;  // Number of storage spaces
  7.   int next;      // Next empty space
  8.    // Dynamically allocated array of bytes:
  9.   unsigned char* storage;
  10.  
  11.   // Functions!
  12.   void initialize(int size);
  13.   void cleanup();
  14.   int add(const void* element);
  15.   void* fetch(int index);
  16.   int count();
  17.   void inflate(int increase);
  18. };
  19.  
  20. #endif // CPPLIB_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement