The c/c++ switch
statement only operates on numeric integer primitives.
You cannot use it with char*
pointers (literals).
attr(optional) switch ( condition ) statement
condition - any expression of integral or enumeration type, or of a class type with a conversion function to integral or enumeration type, or a declaration of a single non-array variable of such type with a brace-or-equals initializer.