No you can’t . The case labels of a switch need to be compile time evaluable constant expressions with an integral type. But int literals like ‘+’ satisfy that requirement.
Can I use string in Switch Case C++?
You cannot use string in either switch or case .17 Mar 2018