反过来
for i:=0 to number-1
do
begin
a:=temp[i];
temp[i]:=temp[number-1-i];
temp[number-1-i]:=a;
end;
第二问没看出来什么关系
for i:=0 to number-1
do
begin
a:=temp[i];
temp[i]:=temp[number-1-i];
temp[number-1-i]:=a;
end;
第二问没看出来什么关系
解决方案 »
- DELPHI多层次的显示和选择,帮忙想个法子
- 大家好一个菜鸟问题!!还请路过的朋友指点
- ADO连接DSN的小错误, 有代码.
- 个人想法,欢迎兄弟们来说说自己的想法.
- 请问各位高手如何获得某个网页上的所有email地址
- 请教:如何对一个EXCEL表中第二页的数据进行修改?
- 又有问题了,欢迎指导,还有,是不是如果有3个人回答,我也能给每个人30分
- 怎样打开文件
- 如何用NMSMTP控件发送HTML格式的电子邮件?
- 在 win2000下,为什么我用movefileex()或movefile()把一个目录下的文件移动到另一个目录不行!急!
- 紧急求救!!!!!!!!100分重谢
- 请教一个小问题(在线等待)
do
begin
a:=temp[i];
temp[i]:=temp[5-i];
temp[5-i]:=a;
end;
move(temp,temp1[1],6);
var
iLoop: Integer;
tempnum: Integer;
begin
totalCount := Length(temp);
for iLoop:=0 to totalCount div 2 do begin
temp[iLoop] := tempnum;
temp[iLoop] := temp[totalCount-iLoop-1];
temp[totalCount-iLoop-1] := tempnum;
end;
end;第二问:
var
tmparray: array[0..1, 0..2] of Integer;
begin
Move(temp, tmparray, SizeOf(temp));
end;
tmparray即为所得