/
lyapdy
/
Object_oriented_programming_cpp_318
Обзор
Документация
Войти
/
lyapdy
/
Object_oriented_programming_cpp_318
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
lab8/task_4.h
23 строки
414 B
danillyapunov
tasks 7 and 8 added
30 ноя 2025, 14:31
30 ноя 2025, 14:31
5a9b53a
Код
Авторство
О чём код?
#ifndef TASK_4_H #define TASK_4_H class TreeNode { private: int value; TreeNode* parent = nullptr; class TreeNodeImpl; TreeNodeImpl* impl; public: TreeNode(int val); ~TreeNode(); TreeNode(const TreeNode&) = delete; TreeNode& operator=(const TreeNode&) = delete; TreeNode* AddChild(int child_value); void Print(int depth = 0) const; }; void task_4(); #endif // TASK_4_H