|
-
April 11th, 2010, 02:21 PM
#2
Re: an array with char index
Hi there.
You could a two dimensional array of integers. You don't have to index with a 'char'. You can map each index to a character. For example 0 -> 'A' and so on. If you want you can define an enumeration for the alphabet. There is already System.Windows.Forms.Keys enumeration but the values there map to ASCII so you couldn't use them to index into the array. Though you could always subtrat 65 from each value...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|