oilerscrazy
Programmer
I need to request a service from a server. I have written the program for both. The client sends a text request and the server tokenizez(sp??) the string into 3 tokens. I need to use the tokens now in a switch statement (or suggest some other way, want to avoid if/else)
The problem is that I can't switch with a string. IO tried enum but it didn't work out, I have never used it before, but anyway. I need some help. how can I turn the strings into int values like 'get' = 1
thanks
The problem is that I can't switch with a string. IO tried enum but it didn't work out, I have never used it before, but anyway. I need some help. how can I turn the strings into int values like 'get' = 1
thanks