|
|
Регистрация Восстановить пароль |
Регистрация | Задать вопрос |
Заплачу за решение |
Новые сообщения |
Сообщения за день |
Расширенный поиск |
Правила |
Всё прочитано |
|
Опции темы | Поиск в этой теме |
19.01.2013, 23:03 | #1 | |
Регистрация: 30.01.2010
Сообщений: 3
|
Linked List. Не могу найти ошибку в коде:(
Доброго времени суток! У меня возникла проблема. Уже почти сутки пытаюсь найти ошибку в своем коде. Ошибка связана с методом find1 он почему то не может найти строку. Если ввести в поиск первую строчку(последнюю введенную) в листе, то он находит. Но если любу. другую, то он без перерыва включает marker.getNext(); и уже не видет одинаковое ли id с введеным или нет. Может кто-нибудь сможет помочь? А то я уже все перерыл Заранее огромное спасибо!
Цитата:
|
|
31.01.2013, 22:23 | #2 |
Пользователь
Регистрация: 31.01.2013
Сообщений: 12
|
Проблема в том, что вы-то метод вызываете, но его значение не присваиваете. marker.getNext() - возвращает адрес следующего звена, его надо присвоить к маркеру: marker = marker.getNext();
|
Похожие темы | ||||
Тема | Автор | Раздел | Ответов | Последнее сообщение |
Не могу найти ошибку в коде | afirat | Общие вопросы Delphi | 7 | 28.12.2012 21:13 |
Не могу найти ошибку в коде | sashmedv | Паскаль, Turbo Pascal, PascalABC.NET | 2 | 25.03.2012 08:31 |
Легкая задача в C++, не могу найти ошибку в коде. | Aaaaaa111 | Помощь студентам | 3 | 20.02.2012 14:07 |
не могу найти ошибку в коде | pavelstraut | Общие вопросы C/C++ | 5 | 24.07.2009 23:20 |
Не могу найти ошибку в коде! | Natasha666 | Помощь студентам | 1 | 20.05.2009 09:27 |