![]() |
|
#1
|
|||
|
|||
Can "switch" based on std::string?Code:
Why this doesn't work for the string? |
|||
|
#2
|
|||
|
|||
Re: Can "switch" based on std::string?Quote:
Two strikes and you are out: 1. The switch condition must reduce to an integer value. 2. Case statement labels must reduce to integer constants. Regards, Dave |
Recent GIDBlog
Problems with the Navy (Officers) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Find String In C++ | muhiuddin | C++ Forum | 1 | 03-Feb-2008 11:30 |
| Creating Variables based on user input | oddsprite | C++ Forum | 9 | 01-Nov-2007 05:31 |
| Help with a programm | doom2006 | C++ Forum | 4 | 30-Sep-2006 23:58 |
| GET A MASSIVE 25% DISCOUNT NOW (Choice of UK or USA BASED HOSTING) | UWebSmart | Web Hosting Advertisements & Offers | 0 | 30-Jun-2006 08:18 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The