ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Common Board

Need an unimediate help with pointers...
Posted by Vladimir Milenov Vasilev 24 May 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...
Posted by Renat Mullakhanov 24 May 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!!!
Posted by Vladimir Milenov Vasilev 24 May 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.
>