Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <stdint.h>
  2.  
  3. #define MAX_STACK_LENGTH 16
  4.  
  5. class Int8Stack
  6. {
  7. public:
  8. static void init(void);
  9. static void push(int8_t i8Elem);
  10. static int8_t pop(void);
  11.  
  12. private:
  13. static int8_t i8Array[MAX_STACK_LENGTH];
  14. static int iIndex;
  15. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement