Autor Beitrag
darktrym
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: So 11.07.04 22:00 
Das hier geht ohne Probleme aber wie mache ich das mit zweien?

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
const
special1:array[0..31]of char=('a','b','c','d','e','f','g','h','i','j',
                                   'k','l','m','n','o','p','q','r','s','t',
                                   'u','v','w','x','y','z',' ','.',',','(',
                                   ')','-');

--------------------------------------------------------------------------------
sollte ungefähr so aussehen
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
 special1:array[1..2]of array[0..31]of char=(('a','b','c','d','e','f','g','h','i','j',
                                   'k','l','m','n','o','p','q','r','s','t',
                                   'u','v','w','x','y','z',' ','.',',','(',
                                   ')','-')
                                   ('A','B','C','D','E','F','G','H','I','J',
                                   'K','L','M','N','O','P','Q','R','S','T',
                                   'U','V','W','X','Y','Z',' ','.',',','(',
                                   ')','-'));

Geht aber nicht!Brauche das um das so anzusprechen special[mode,i] oder special[mode][i]
Wie muss ich das deklarieren?Dank im voraus.


Moderiert von user profile iconPeter Lustig: Delphi-Tags hinzugefügt.
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: So 11.07.04 22:56 
Mit Komma ;-)
ausblenden Delphi-Quelltext
1:
2:
3:
4:
 // ...
                                   'u','v','w','x','y','z',' ','.',',','(',
                                   ')','-')      , // <-- da!
                                   ('A','B','C','D','E','F','G','H','I','J',

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert