switch with Strings
Hello there,
Just a quick question, is there a better and / or better looking way to do this? Is there something like switch for integers for strings? PHP Code:
|
Re: switch with Strings
Possible to use one global var with enum, and assocating string to enum constants, then you would need just Trie native + 3 lines.
|
Re: switch with Strings
You could make szPos names something like this - endstart1 endstart2 and so on, after that check last integer num. When you have it, make it 2D array with some enums.
|
| All times are GMT -4. The time now is 21:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.