Hi! I'm doing my tasks with fpc in linux, but in the university we have
only tp, and there are several problems with bringing binaries.
I have such code to have something like dynamic arrays:
procedure add_mem(var P: dynamic_array_ptr; var cur_size:Integer);
var
i:Integer;
Op Sat, 24 Mar 2007, schreef Evgeniy Ivanov:
Hi! I'm doing my tasks with fpc in linux, but in the university we have only
tp, and there are several problems with bringing binaries.
You have some negotiations to do :)
I have such code to have something like dynamic arrays:
procedure
On Sat, 24 Mar 2007 13:05:54 +0300, Daniël Mantione
[EMAIL PROTECTED] wrote:
procedure add_mem(var P: dynamic_array_ptr; var cur_size:Integer);
var
i:Integer;
buff_ptr:dynamic_array_ptr;
begin
getmem(buff_ptr,cur_size*sizeof(BusStation) );
for i:=1 to cur_size do
buff_ptr^[i] := P^[i];
Op Sat, 24 Mar 2007, schreef Evgeniy Ivanov:
On Sat, 24 Mar 2007 13:05:54 +0300, Daniël Mantione
[EMAIL PROTECTED] wrote:
procedure add_mem(var P: dynamic_array_ptr; var cur_size:Integer);
var
i:Integer;
buff_ptr:dynamic_array_ptr;
begin
On Sat, 24 Mar 2007 13:35:24 +0300, Daniël Mantione
[EMAIL PROTECTED] wrote:
procedure add_mem(var P: dynamic_array_ptr; var cur_size:Integer);
var
i:Integer;
buff_ptr:dynamic_array_ptr;
begin
getmem(buff_ptr,cur_size*sizeof(BusStation) );
for i:=1 to cur_size do
buff_ptr^[i]
Op Sat, 24 Mar 2007, schreef Evgeniy Ivanov:
Well, all I can say is check your code securely. The basic idea is good,
so it is likely the implementation.
I will try. May be there is some problem with index and memory in tp and dos
(dos emulation in NT) is unsecure.
Note that in Dos, the
On Sat, 24 Mar 2007 15:52:20 +0300, Daniël Mantione
[EMAIL PROTECTED] wrote:
Note that in Dos, the memory at program start is in random state; in
other
words, if your program contains bugs like uninitialized memory, it can
have different behaviour between runs.
It is the thing that I