Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Queue.h
- #ifndef QUEUE_H_INCLUDED
- #define QUEUE_H_INCLUDED
- // Specifico quale versione includo
- #include "Item.h"
- typedef struct queue *QUEUE;
- QUEUE QUEUEinit(int maxN);
- int QUEUEempty(QUEUE q);
- void QUEUEput(QUEUE q, Item val);
- Item QUEUEget(QUEUE q);
- void QUEUEfree(QUEUE q);
- #endif // QUEUE_H_INCLUDED
- // Stack.h
- #ifndef STACK_H_INCLUDED
- #define STACK_H_INCLUDED
- // Specifico quale versione includo
- #include "Item.h"
- typedef struct stack *STACK;
- STACK STACKinit(int maxN);
- int STACKempty(STACK s);
- void STACKpush(STACK s, Item val);
- Item STACKpop(STACK s);
- void STACKfree(STACK s);
- #endif // STACK_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement