Autor Beitrag
DK99
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 46

Win Vista (64 Bit) + W7 Up
(Delphi 7,) Java 6 (Eclipse+ BlueJ), OpenGL2.0
BeitragVerfasst: Di 15.04.08 19:07 
Hallo
Wie kann ich einen array typen deklarieren ,der hinterher als zähler 2 Zahlen verwenden soll?
der array soll also so aussehen :
ausblenden Delphi-Quelltext
1:
Map[x+1,y]					


ich kenne bis jetzt nur die deklaration:
ausblenden Delphi-Quelltext
1:
var Map : array[1..100] of integer ; // oder string o.ä.					


kann mir da bitte jemand helfen? :)
MFG

_________________
"Sometimes it pays to stay in bed on Monday, rather than spending the rest of
the week debugging Monday's code."-- Dan Salomon
Silas
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 478

Windows XP Home
Delphi 2005, RAD Studio 2007, MASM32, FASM, SharpDevelop 3.0
BeitragVerfasst: Di 15.04.08 19:13 
Moin,

schreib einfach zwei Zahlenbereiche mit Komma getrennt in die Deklaration:
ausblenden Delphi-Quelltext
1:
var Map : array[1..100, 1..100] of integer ; // oder string o.ä.					

_________________
Religionskriege sind nur Streitigkeiten darüber, wer den cooleren imaginären Freund hat ;-)
DK99 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 46

Win Vista (64 Bit) + W7 Up
(Delphi 7,) Java 6 (Eclipse+ BlueJ), OpenGL2.0
BeitragVerfasst: Di 15.04.08 19:15 
ok super
danke :)

_________________
"Sometimes it pays to stay in bed on Monday, rather than spending the rest of
the week debugging Monday's code."-- Dan Salomon
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Di 15.04.08 19:15 
ausblenden Delphi-Quelltext
1:
var Map : array[1..100, 1..100] of integer ; // oder string o.ä.					


Nennt sich zweidimensionales Array.

Edit:
zu langsam...
Hidden
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2242
Erhaltene Danke: 55

Win10
VS Code, Delphi 2010 Prof.
BeitragVerfasst: Di 15.04.08 19:29 
Hi,

Bei dynamischen Arrays läuft das noch ein bisschen anders: Array of Array of String.

Schau aber am besten gleich mal hier vorbei.

mfG,

_________________
Centaur spears can block many spells, but no one tries to block if they see that the spell is a certain shade of green. For this purpose it is useful to know some green stunning hexes. (HPMoR)