Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.48 KB | None | 0 0
  1. #ifndef CPPLISTS_H_
  2. #define CPPLISTS_H_
  3.  
  4. namespace CppLists
  5. {
  6.     struct List;
  7.     struct Node
  8.     {
  9.         Node* next;
  10.         int data;
  11.         Node* prev;
  12.     };
  13.  
  14.     struct List
  15.     {
  16.     List(List& myList);
  17.         Node* first;
  18.         Node* last;
  19.         int size;
  20.     };
  21.  
  22. }
  23.  
  24.  
  25. #endif /* CPPLISTS_H_ */
  26. _______________________________________________
  27.  
  28. #include "CppLists.h"
  29.  
  30. #define NULL 0
  31.  
  32. void CppLists::List(List& myList)
  33. {
  34.     myList.size = 0;
  35.     myList.first = NULL;
  36.     myList.last = NULL;
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement