|
|
back to boardCommon BoardNeed an unimediate help with pointers... 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... > 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!!! > > 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. > |
|
|