diff options
Diffstat (limited to 'algo1w3/IntLink.h')
-rw-r--r-- | algo1w3/IntLink.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/algo1w3/IntLink.h b/algo1w3/IntLink.h new file mode 100644 index 0000000..ce8c916 --- /dev/null +++ b/algo1w3/IntLink.h @@ -0,0 +1,16 @@ +#pragma once + +class IntLink { +public: + IntLink(); + IntLink(int, IntLink*); + virtual ~IntLink(); + +private: + IntLink* next = nullptr; + int value = 0; + +private: + friend class IntLinkedList; +}; + |