Advertisement
Ruggeri96

Untitled

Jan 22nd, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.66 KB | None | 0 0
  1. // Queue.h
  2. #ifndef QUEUE_H_INCLUDED
  3. #define QUEUE_H_INCLUDED
  4.  
  5. // Specifico quale versione includo
  6. #include "Item.h"
  7.  
  8. typedef struct queue *QUEUE;
  9.  
  10. QUEUE QUEUEinit(int maxN);
  11. int QUEUEempty(QUEUE q);
  12. void QUEUEput(QUEUE q, Item val);
  13. Item QUEUEget(QUEUE q);
  14. void QUEUEfree(QUEUE q);
  15.  
  16.  
  17.  
  18.  
  19.  
  20. #endif // QUEUE_H_INCLUDED
  21.  
  22.  
  23. // Stack.h
  24. #ifndef STACK_H_INCLUDED
  25. #define STACK_H_INCLUDED
  26.  
  27. // Specifico quale versione includo
  28. #include "Item.h"
  29.  
  30. typedef struct stack *STACK;
  31.  
  32. STACK STACKinit(int maxN);
  33. int STACKempty(STACK s);
  34. void STACKpush(STACK s, Item val);
  35. Item STACKpop(STACK s);
  36. void STACKfree(STACK s);
  37.  
  38.  
  39.  
  40.  
  41.  
  42. #endif // STACK_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement