1234567891011121314151617181920212223 |
- #pragma once
- #include <iostream>
- #include "Circle.h"
- class Node
- {
- Node* pPrev; //óęŕçŕňĺëü íŕ ďđĺäűäóůčé ýëĺěĺíň
- Node* pNext; //óęŕçŕňĺëü íŕ ńëĺäóţůčé ýëĺěĺíň
- Circle m_Data;
- //Ěĺňîäű:
- Node() :pPrev(nullptr), pNext(nullptr) {}//(Head, Tail)
- Node(Node* Prev /*enum*/, const Circle*);//new Node Ťďîäęëţ÷ŕĺňń˙ť â ńďčńîę.
- ~Node();//Ťčńęëţ÷čňüť Node čç ńďčńęŕ
- friend class List;
- friend std::ostream& operator<<(std::ostream& os, const Node& node);
- friend std::ostream& operator<<(std::ostream& os, const List& list);
- /*friend List& operator>>(std::ifstream& is, List& list);*/
- };
- std::ostream& operator<<(std::ostream& os, const Node& node);
|