aArr : array[0..9] of Integer = (0, 1, 2, 3, 4, 5, 6, 7, 8, 9£©£»
Ôõô°ÑÊý×éaArrµÄµÚ3λµ½µ½µÚ6λ¸´ÖƵ½ÁíÍâÒ»¸öÊý×éÀïÃæÈ¥£¿
²»ÓÃfor¿ÉÒÔ×öµ½Âð£¬ÓÐʲôº¯Êý¿É¹©Ê¹Óã¿
var
A1,A2 : integer;
A1 := aArr[2];
A2 := aArr[5];
Delphi(Pascal) code:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Label1: TLabel;
Button2: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
aArr: array[0..9] of Integer = (0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var
aArr2: array[0..3] of Integer;
begin
Move(aArr[3], aArr2[0], SizeOf(Integer)*4);
end;
end.
2Â¥µÄ¿ÉÒÔʵÏÖ¡£
²»ºÃÒâ˼,Àí½â´íÎó.
Delphi(Pascal) code:
Â¥Ö÷ÊÇ·ñÕâÖÖÏë·¨£º
var
aArr: array[0..9] of Integer = (0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
...
procedure CopyArr(var ATargetArr: array of Integer; ASourceArr: array of Integer);
var
L: Integer;
begin
ÒªÇóÄÜʵÏÖ¶þÈËÔŲ́ͬµçÄÔÉ϶ÔÕ½µÄ ²»ÓÃÌ«»¨ÉÚ ×îºÃ»¹¼ÓÉÏÈË»ú¶ÔÕ½µÄ ¼±Ðè ˰ïÏÂæ°¡Ñ½!!!!!!!!
up
baidu£¬google
up
http://www.codepub.com/software/view-software-4061.html
ÍøÕ¾ÉÏÓÐ
......
ÎÒÔõô²éÁËÄÇô¶à˵ÊÇÄÜÆÆ½âµÄ£®½á¹û¶¼²»ÐУ®ÄãÃÇÓÐûÓÐѽ£®¸øÎÒ¸öÏêϸµÄ½â¾ö·½°¸£®ÏÂÔØÄĸö°æ±¾£®ÆÆ½âÎļþ£¬»¹ÓÐ×¢²áÂë
²»Çå³þ
ÏÂÔØ¹Ù·½¹âÅ̾µÏñ£¬ÓÃdelphidistiller1.85ÆÆ½â
µ½www.2ccc.comÉÏÈ¥ÕÒdelphidis ......