Board index » delphi » help

help

How is an array laid out in memory?

 

Re:help


Quote
In article <3576A2CD....@abdn.ac.uk>, Gavin Coull <u06...@abdn.ac.uk> writes:
>How is an array laid out in memory?

Consecutively.

Alan Lloyd
alangll...@aol.com

Re:help


Quote
AlanGLLoyd wrote:

> In article <3576A2CD....@abdn.ac.uk>, Gavin Coull <u06...@abdn.ac.uk> writes:

> >How is an array laid out in memory?

> Consecutively.

And padded, depending on element size and how you have the compiler
options set. use "packed" if you don't want this to happen.

--
***********************************************
Martin Harvey
Uni email: mc...@cam.ac.uk <EXPIRES 13/7/98>
Home email: mc...@harvey27.demon.co.uk
Web pages: http://www.harvey27.demon.co.uk/mch24/
***********************************************

Re:help


In article <3576A2CD....@abdn.ac.uk>,
  Gavin Coull <u06...@abdn.ac.uk> wrote:

Quote

> How is an array laid out in memory?

      The first entry comes first. It's followed by the second
entry, etc. (Um, sorry - dunno what else to say...)

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/   Now offering spam-free web-based newsreading

Re:help


On Thu, 04 Jun 1998 14:36:13 +0100, Gavin Coull <u06...@abdn.ac.uk>
wrote:

Quote
>How is an array laid out in memory?

By an angry matrix who is the husband of the {*word*226} little vector the
array has been seeing...

No, seriously, you'll have to rephrase the question. What exactly do
you want to know?

Re:help


I need prog. in Pascal to calculate the number of day life in function of
the date of birthday an the current day.

Thanks

Nick

Re:help


var
   dtConut ,dtNow :TDateTime
   Hour, Min, Sec, MSec: Word;
begin
   dtNow:=Now;

   dtConut:=dtNow -dtBirthday;
   DecodeTime(dtConut, Hour, Min, Sec, MSec);
end;

Other Threads