|
|
Регистрация Восстановить пароль |
Регистрация | Задать вопрос |
Заплачу за решение |
Новые сообщения |
Сообщения за день |
Расширенный поиск |
Правила |
Всё прочитано |
|
Опции темы | Поиск в этой теме |
22.06.2016, 20:43 | #1 |
Форумчанин
Регистрация: 15.12.2013
Сообщений: 414
|
Удалить узел в бинарном дереве
Добрый вечер. В задании нужно найти узел дерева с наибольшим показателем счетчика, после чего удалить найденный узел из дерева. В структуре помимо счетчика также хранится английское слово,русское слово и естественно указатели на правую и левую стороны. Возникли проблемы с функцией удаления найденного узла.
Код:
|
22.06.2016, 21:03 | #2 |
Участник клуба
Регистрация: 14.05.2016
Сообщений: 1,793
|
Выложи полный код. Я хочу посмотреть.
|
22.06.2016, 21:10 | #3 |
Форумчанин
Регистрация: 15.12.2013
Сообщений: 414
|
Код:
|
22.06.2016, 21:17 | #4 |
Участник клуба
Регистрация: 14.05.2016
Сообщений: 1,793
|
Я имел ввиду полный (найполнейший, най-найполнейший) код. Дело в том, что я пока ещё учусь, и мне трудно по одному взгляду на код что то сказать (для этого нужно знать что делает каждая строчка кода). Я так пока не могу. Мне надо, то что называется, пощупать код, посмотреть его в работе.
А то у меня компилятор ругается на твой код Последний раз редактировалось ura_111; 22.06.2016 в 21:32. |
22.06.2016, 21:31 | #5 |
Форумчанин
Регистрация: 15.12.2013
Сообщений: 414
|
Пожалуйста
Код:
|
23.06.2016, 14:27 | #6 |
Участник клуба
Регистрация: 14.05.2016
Сообщений: 1,793
|
Короче, перепахал всю программу (не только ф-цию удаления), теперь начала что-то выводить. Вероник, возьми и хорошенько протестируй мой код (у меня на это не было времени). Если что, будем общаться дальше. Здесь ограничение на код в 8000 букв, поэтому разбил программу на 2-части (см. ниже).
Код:
Последний раз редактировалось ura_111; 23.06.2016 в 14:38. |
23.06.2016, 14:27 | #7 |
Участник клуба
Регистрация: 14.05.2016
Сообщений: 1,793
|
Код:
|
Похожие темы | ||||
Тема | Автор | Раздел | Ответов | Последнее сообщение |
Освобождение памяти в бинарном дереве? | perceptron2013 | Общие вопросы C/C++ | 4 | 06.11.2012 16:28 |
удаление элемента в бинарном дереве | Kukurudza | Общие вопросы C/C++ | 1 | 26.06.2011 22:51 |
Расчет уровней в бинарном дереве | holi10 | Общие вопросы C/C++ | 0 | 01.06.2011 18:22 |
Поиск в бинарном дереве не по ключу | lebrosha | Помощь студентам | 2 | 26.05.2009 15:32 |
Удаление вершины в бинарном дереве | lebrosha | Помощь студентам | 2 | 24.05.2009 13:51 |