As is well known when using switch (expression), thus: "The expression must be of an integral type or of a class type for which there is an unambiguous conversion to integral type". If the switch contains a number of case / 2 to 4 /, then there is no problem. Well, if you say case is 30 pieces, then dostura to 29 in a row case, the compiler must make 29 comparisons. Below is a one of the solutions to this problem. And so the program as expression must transmit the index number to any array, containing the address points transition operator goto. Everything! Notes: Of course array must contain the called function.
V
Vladimi_r2
@Vladimi_r2