Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef LIST_H
- #define LIST_H
- template <typename T>
- class List{
- struct Node{
- T value;
- Node *next;
- };
- Node *head, *tail;
- public:
- List();
- };
- #endif // LIST_H
- template<typename T>
- List::List()
- {
- head=null;
- tail==null;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement