eduardovp97

DobleCola.h

Oct 24th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. #ifndef DOBLECOLA_H
  2. #define DOBLECOLA_H
  3.  
  4. typedef int TInfo;
  5.  
  6. typedef struct Node{
  7.     TInfo value;
  8.     struct Node* next;
  9. }TNode;
  10.  
  11. typedef struct DobleCola{
  12.     TNode *first;
  13.     TNode *last;
  14. }TDobleCola;
  15.  
  16. void init(TDobleCola*);
  17. void insertLeft(TDobleCola*, TInfo);
  18. void insertRight(TDobleCola*, TInfo);
  19. TInfo removeLeft(TDobleCola* deque);
  20. TInfo removeRight(TDobleCola* deque);
  21.  
  22. #endif
Add Comment
Please, Sign In to add comment