|
-
December 13th, 2001, 06:40 PM
#1
Strings in switch statements
I need a section of code which selects an action based on s 3 character string and a switch statement cannot be used with string values. I was working on converting the string to an integer but am not sure how to do this for the case values, as these must be converted and made constant at compile time. Can anyone help me?
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
|