|
From: Lark <la...@ya...> - 2001-04-23 17:19:02
|
At 4:10 PM -0700 4/21/01, Ben Hines wrote:
>const char * exileKeys = (
> "Boosts",
> "Seeks",
> "Cadded By",
> "Outgoing Share [Time]",
> "Incoming Share [Time]",
> "Coins To",
> "Coins From",
> "Times Chained By",
> "Times Chained" )
>
>enum exileKeyList
>{
> cBoost = 0,
> cSeek,
> cCad,
> cShareOut,
> cShareIn,
> cCoinsTo,
> cCoinsFrom,
> cChainedBy,
> cChained,
> cEnd
>};
>
>And access the keys like:
>
>exileKeys[cBoost]
Technically, using an enum to index an array is iffy. However, it
works fine in practice. :-)
>Sound good? Or is there a better way?
Sounds good.
--
Lark <lar...@ya...>
|