多维数组示例 [英] multi dimensional array example

查看:64
本文介绍了多维数组示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


如何将Win32的Delphi代码转换为C或C ++ Win32代码?


var

vArray:整数数组数组;


x,y,z:整数;


开始

SetLength(vArray,200,200,200);


for x:= 0到199 do

begin

代表y:= 0到199做

开始

代表z:= 0到199做

开始

vArray [x,y,z]:= 123456789;

结束;

结束;

结束;


vArray:= nil;

end;


再见,

Skybuck。

Hello,

How to convert this Delphi code for Win32 to C or C++ Win32 code ?

var
vArray : array of array of array of integer;

x,y,z : integer;

begin
SetLength( vArray, 200, 200, 200 );

for x := 0 to 199 do
begin
for y := 0 to 199 do
begin
for z := 0 to 199 do
begin
vArray[ x, y, z ] := 123456789;
end;
end;
end;

vArray := nil;
end;

Bye,
Skybuck.

推荐答案

Skybuck Flying说:
Skybuck Flying said:

您好,


如何将Win32的Delphi代码转换为C或C ++ Win32代码?
Hello,

How to convert this Delphi code for Win32 to C or C++ Win32 code ?



您可以在几年内为您的系统性和长期Usenet

滥用道歉。人们通常都不感兴趣

帮助巨魔解决技术问题。


-

Richard Heathfield

Usenet是一个奇怪的地方 - dmr 29/7/1999
http://www.cpax.org.uk

电子邮件:rjh在上述域名中, - www。

You could start by apologising for your systematic and prolonged Usenet
abuse over several years. People aren''t usually all that interested in
helping trolls with technical problems.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.




" Richard Heathfield" ; < rj*@see.sig.invalidwrote in message

news:7b *************************** *** @ bt.com ...

"Richard Heathfield" <rj*@see.sig.invalidwrote in message
news:7b******************************@bt.com...

Skybuck Flying说:
Skybuck Flying said:

>你好,

如何将Win32的Delphi代码转换为C或C ++ Win32代码?
>Hello,

How to convert this Delphi code for Win32 to C or C++ Win32 code ?



您可以在几年内为您的系统性和长期Usenet

滥用道歉。人们通常不会对帮助巨魔出现技术问题感兴趣。


You could start by apologising for your systematic and prolonged Usenet
abuse over several years. People aren''t usually all that interested in
helping trolls with technical problems.



我不会向像你这样无能的傻瓜道歉。


再见,

Skybuck。

I don''t ever apologise to incompetent fools like you.

Bye,
Skybuck.


Skybuck Flying说:
Skybuck Flying said:

>

"理查德希思菲尔德 < rj*@see.sig.invalidwrote in message

news:7b *************************** *** @ bt.com ...
>
"Richard Heathfield" <rj*@see.sig.invalidwrote in message
news:7b******************************@bt.com...

> Skybuck Flying说:
>Skybuck Flying said:

> >您好,

如何将Win32的Delphi代码转换为C或C ++ Win32代码?
>>Hello,

How to convert this Delphi code for Win32 to C or C++ Win32 code ?


您可以在几年内为您的系统性和长期Usenet
滥用道歉。人们通常都没有兴趣帮助巨魔解决技术问题。


You could start by apologising for your systematic and prolonged Usenet
abuse over several years. People aren''t usually all that interested in
helping trolls with technical problems.



我不会向像你这样无能的傻瓜道歉。


I don''t ever apologise to incompetent fools like you.



这个数字。然而,在我离开你的虐待池之前,只有几点:有些人不能做你想要做的事 - 比如

你 - 无能,有人侮辱他寻求帮助的人

- 例如你 - 是个傻瓜。聪明人并不过分关注这些人的意见




-

Richard Heathfield

Usenet是一个奇怪的地方 - dmr 29/7/1999
http://www.cpax.org.uk

电子邮件:rjh在上述域名中, - www。

That figures. Just a couple of points, though, before I leave you to your
cess-pool of abuse: someone who can''t do what you''re asking to do - e.g.
you - is incompetent, and someone who insults those from whom he seeks help
- e.g. you - is a fool. The wise are not overly concerned by the opinions
of such people.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.


这篇关于多维数组示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆