ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Общий форум

Need an unimediate help with pointers...
Послано Vladimir Milenov Vasilev 24 май 2003 00:23
Please to all using Pascal - how are the pointers realised? For
example, a binnary tree - please if you read it write in the webboard
or on my mail : vladovasilev@abv.bg - I'll check them every 10
minits...its very important for me...Thanks!!!
Re: Need an unimediate help with pointers...
Послано Renat Mullakhanov 24 май 2003 00:40
> Please to all using Pascal - how are the pointers realised? For
> example, a binnary tree - please if you read it write in the
webboard
> or on my mail : vladovasilev@abv.bg - I'll check them every 10
> minits...its very important for me...Thanks!!!

For example:

type
  pnode=^tnode;
  tnode=record
    x: integer;
    l,r: pnode;
  end;
var
  root: pnode;
begin
  new(root);
  root^.x:=1;
  root^.l:=nil;
  root^.r:=nil;
{...}
  dispose(root);
end.
Thank you very much...if I could help you with something - write to me! Thanks again!!!
Послано Vladimir Milenov Vasilev 24 май 2003 00:44
> > Please to all using Pascal - how are the pointers realised? For
> > example, a binnary tree - please if you read it write in the
> webboard
> > or on my mail : vladovasilev@abv.bg - I'll check them every 10
> > minits...its very important for me...Thanks!!!
>
> For example:
>
> type
>   pnode=^tnode;
>   tnode=record
>     x: integer;
>     l,r: pnode;
>   end;
> var
>   root: pnode;
> begin
>   new(root);
>   root^.x:=1;
>   root^.l:=nil;
>   root^.r:=nil;
> {...}
>   dispose(root);
> end.
>