Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これが私がやろうとしていることです:
T[1]:=5; T[2]:=3; . . . T[9]:=20;
1行で値を割り当てることができるこれを達成するための近道はありますか?
どのドキュメントでもこれを見つけることができませんでしたが、これを試してみたところ、うまくいきました!
完全な例で使用される方法は次のとおりです。
Program StrangeArray; Var T: Array[1..5] of Integer = (554,434,144,343,525); x:integer; Begin For x:=1 to 5 Do Begin Writeln(T[x]); End; End.
これが他の人にも役立つことを願っています。