how to write switch syntax function cpp(c++).

Published --