🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: cn.bbs.comp.program
1 messages
1 total messages Started by ����~ �������� Tue, 24 Mar 1998 00:00
Re: ���DELPHI�пɱ�������÷�
#1742
Author: ����~ ��������
Date: Tue, 24 Mar 1998 00:00
37 lines
1641 bytes
> ==> Early_Chou(Good luck)                    ˵��: 
> ����˵��Խ������DZ���ʱ���Ĵ?��������ʱ�? 
> ���DZ���?����Ϊ���DataUnit����Ϊarray[0..0]of 'yourtype' 
> �ڵ���Buffer[2]ʱ���±�'2'�����˶������������0' 
 
   early��˵�ú�, ���Ҫ����Խ���, ��������ô:

   Here is ome information that shows how to use this dynamic allocation
for matrix code writing in a general way:

Type
  BigData= array [0..High(cardinal) div sizeof($YOURTYPE)-1] of $YOURTYPE;
  PBigData= ^BigData;

{$YOURTYPE is a variable type, such as Integer, Word, Byte.. etc }

   # then you can define a variable as
      
     aBigArray: PBigData;

   # Use this function to allocate memory:

     GetMem(aBigArray, SIZE AS YOU WISH);

   # And use aBigArray^[index] to visit it:
 
     aBigArray^[INDEX AS YOU WISH] := aValue;

   # Remember to free the allocated memory:
   
     FreeMem(aBigArray);

   If you use 32 bits Delphi, you can use more than 64K memory.

--
�� ��Դ: �й�ƴ�BBSվ [bbs.ustc.edu.cn]
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads