Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef CPPLISTS_H_
- #define CPPLISTS_H_
- namespace CppLists
- {
- struct List;
- struct Node
- {
- Node* next;
- int data;
- Node* prev;
- };
- struct List
- {
- List(List& myList);
- Node* first;
- Node* last;
- int size;
- };
- }
- #endif /* CPPLISTS_H_ */
- _______________________________________________
- #include "CppLists.h"
- #define NULL 0
- void CppLists::List(List& myList)
- {
- myList.size = 0;
- myList.first = NULL;
- myList.last = NULL;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement