0
Can switch statement use for string?
3 Respuestas
+ 15
Not for C++. There is a workaround using enum, but that's not always what you want.
https://stackoverflow.com/questions/650162/why-switch-statement-cannot-be-applied-on-strings
+ 7
Yes it could.
+ 1
nice