The main method USES an enhanced for loop to iterate through the different primitives and a simple switch statement on the current instance to set the size value of each primitive.
main方法使用增强的for循环来迭代通过不同的原语,并在当前实例上使用一个简单的switch语句来设置每个原语的大小值。
All the other statements of the language exist in order to make it possible to perform a computation that must be based on this primitive construct: the assignment statement.
所有其它语句的存在,只是为了能使那些根植于赋值语句的计算结构可以正确地运行。
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语句的圆括号里可以是一个整数,或者一个字符或其他的基本类型。
应用推荐