Code:
Type test a as integerend typedim variable as testdim variable_ptr as test ptr'@ means Address ofvariable_ptr = @variablevariable.a = 4print variable_ptr->a
Statistics: Posted by Imortis — Tue Jan 27, 2009 8:59 pm
Code:
const packSize as integer = 5type dog dim age as integerend typedim pack(1 to packSize) as dogdim oldest as dog ptr'... blah blah blah, do stuff with dogs' ages'Find oldest dog in packoldest = @pack(1)for i as integer = 2 to packSize 'compare age if oldest=>age < pack(i) then oldest = @pack(i)next iend
Statistics: Posted by Mentat — Tue Jan 27, 2009 6:31 pm
Statistics: Posted by burger2227 — Tue Jan 27, 2009 6:16 pm