Not all enum constants covered on switch Missing enumerations on a switch statement, meaning that you may miss some enumerated options.
Not all enum constants covered on switch switch语句缺少枚举项意味着您可能遗漏一些枚举选项。
Another useful rule of thumb: it's typically not cost effective to inline functions with loops or switch statements (unless, in the common case, the loop or switch statement is never executed).
其他有用的经验法则:一个函数如果有判断或循环语句通常是没效率的。(除非在通常的情况下循环语句或判断语句不会执行)。
I get the int and store it in n. The switch statement takes inside its parenthesis an int or a char or some primitive type.
我得到一个整数并把它存储,到n中,switch语句的圆括号里可以是一个整数,或者一个字符或其他的基本类型。
应用推荐