How to implement switch statement using string?

November 12, 2009 - 2:14 am

I want to implement a switch statement for a string, which varies from time to time (depending on the input) given at runtime. how can i use it using stls?

Give more description avout which language u r using and what actually u want to achive.

2 Responses to “How to implement switch statement using string?”

  1. Vinod Says:

    If you are using java, you can use enum like this:-
    http://www.java2s.com/Code/Java/Language-Basics/JavaenumCreatinganEnum.htm
    References :

  2. Vinay Says:

    Give more description avout which language u r using and what actually u want to achive.
    References :

Leave a Reply