View Single Post
Old 26.02.2006, 22:25   #17
humordwarf
Архивный участник
 
Join Date: Feb 2006
Posts: 453
Default

Quote:
Originally Posted by Mirror
this info is not enough. what 'link' variable is ?
i think i disagree. first 44 bytes are null and i believe they are the 11 first geos which are null.
still if you have full and certain info like chinese say 'it's better learning someone how to fish than giving him a fish to eat'
kindergarten.....

Code:
var
  nodes: array of TNode;
  f: file;
begin
  filemode:=0;
  assignfile(f,'pathnode.bin');
  reset(f,1);
  setlength(nodes,filesize(f) div sizeof(TNode));
  blockread(f,nodes[0],filesize(f));
  closefile(f);
end.
// nodes[n].link[x] - our nodes array index
// sizeof(TNode) = 44 bytes
// sizeof(integer) = 4 bytes
// A = first letter of roman alphabet
good fish ?
humordwarf is offline