プレイ日記
Ender Enderguy_58
Can someone with a brain explain me what DIM means...
2そうだね
プレイ済み
返信[1]
親投稿
MLGDean FizzyBoi1987
we already know this stuff OKAY BRAINIAC
0そうだね
プレイ済み
返信[2]
親投稿
Ender Enderguy_58
but I don't because I'm dumb
1そうだね
プレイ済み
返信[3]
親投稿
Hanzo rzsense
DIM stands for dimension. You can refer to three dimension array like ?D[X,Y,Z]. What is three dimension... Imagine a development with plural apartment buildings. Before you visit your friend live in there, you have to clarify three numbers (building number, floor number and room number) Imagine one, two or four dimension with the same way.
1そうだね
未プレイ
返信[4]
親投稿
Ender Enderguy_58
Thanks for the explaination... Can you give me a simple example of DIM utilisation in a program?
0そうだね
プレイ済み
返信[5]
親投稿
Hanzo rzsense
Could you refer to the following codes? DIM D$[5,5] FOR Y=0 TO 4:FOR X=0 TO 4:D$[X,Y]=CHR$(RND(256)):NEXT X:NEXT Y WHILE TRUE:CLS:?" 01234"; FOR Y=0 TO 4:?:?Y;:FOR X=0 TO 4:?D$[X,Y];:NEXT X:NEXT Y ?:?:INPUT"HV";P$ X=VAL(LEFT$(P$,1)):Y=VAL(RIGHT$(P$,1)):?D$[X,Y]:WAIT 120 WEND
1そうだね
未プレイ