考虑从1到25之间的任意整数。
每个细胞都有一个状态,可以是0到n之间的任意整数。
Each cell has a state, which you can think of as an integer between 0 and n. Listing 1 shows how to declare a cellular automaton universe in Java code.
常用算术转换规则规定在任意整数运算时首先执行整型提升。
The usual arithmetic conversion rules state that first you perform the integer promotions on any integer operands.
So with an integer, an int data type, you can store any number between 0 and 4 billion roughly.
只要有一个整数,一个int型的数据,就能储存任意一个,位于0到40亿之间的一个数。
应用推荐