![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Oct 2005
Posts: 1
Rep Power: 0
![]() |
Pascal Help
i'm trying to use an enumerated data type in an array but pascal keeps giving me an error. I've checked examples from web sites and other code and my code is basically identical.
program BlackJackHack; type CardId = (BAce, BTwo, BThree, BFour, BFive, BSix, BSeven, BEight, BNine, BTen, BJack, BQueen, BKing, RAce, RTwo, RThree, RFour, RFive, RSix, RSeven, REight, RNine, RTen, RJack, RQueen, RKing); DeckofCardId = array [CardId] of integer; Error: Line 5: [Error] (5:23): Unknown identifier '' in script C:\Docu.... |
|
|
|
|
|
#2 |
|
Programmer
Join Date: Jun 2005
Posts: 86
Rep Power: 4
![]() |
CardId is an enumerated type. You can do this:
DeckofCardId = array[1..2] of CardId; |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|