SWITCH CASE ON std::string
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
Is it allowed and if yes then how do we use it?
-
Is it allowed and if yes then how do we use it?
No, in C++ case statements, the constant expression must be an integral type (numeric value. It must be promotable to an int or unsigned.) Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke -- modified at 22:27 Wednesday 3rd May, 2006