这与将它们声明为整型变量一样容易。
年龄:整型变量可以读写访问。
当一个浮点型数据赋值给整型变量时会发生?
What happen when a floating point value is assigned to an integer variable?
GLPK必须要将这些决策变量全部当作整型变量进行考虑。
GLPK has to consider the decision variables as integer variables.
做演员之间签署的和无符号整型变量在内存中保持精确的比特模式?
Does cast between signed and unsigned int maintain exact bit pattern of variable in memory?
这些模型形成具有0—1变量和一般整型变量的大规模整数规划问题。
These models are large scale integer programmings with 0-1 variables and general integer variables.
这里我们将为字数统计程序声明一个整型变量,来保存程序统计出来的字数。
We will declare an integer variable here for our word-counting program that holds the number of words counted by the program.
那么,在一个小循环(tightloop)中,定义一个整型变量,最好类似这样。
So, the best declaration for an int variable in a tight loop would be.
比如你对一个整型变量,除非你显示的进行转化,否则你是不能像对待字符串那样就行某些操作。
If you have an integer, you can't treat it like a string without explicitly converting it.
逐位运算在其二进制形式的整型变量上执行逻辑AND、OR、EXLUSIVE OR和NOT运算。
Bitwise operations perform logical and, or, EXLUSIVE or, and NOT operations on binary representations of their integer arguments.
例如,假设您在一个整型变量中执行某个位操作,并预期其大小为4:这并非在所有操作系统平台上都是如此(请参见清单7)。
For example, suppose you do some bit manipulation in an integer variable and expect it to be of size 4: This may not be the case on all operating system platforms (see Listing 7).
php中的变量都是弱类型的:您可以将变量指定为整型,稍后将其指定为字符型。
Variables in PHP are weakly typed: you can assign a variable as an integer and later as a character.
我为Thread. Sleep方法设置了一个值为1500(毫秒)的整型延时变量,这样在测试自动化的各个时刻都可以暂停1.5秒。
I set an int delay variable to 1500 (milliseconds) to feed to the Thread.Sleep method so I can pause 1.5 seconds at various points in the test automation. To launch the app under test I use this code.
支持的变量包括整型、浮点型的数字、字符串、数组和对象。
Supported variables include integers, floating point Numbers, strings, arrays, and objects.
清单1中的示例说明了如何创建多种类型的变量(整型、浮点、字符串、数组和函数)。
The example in Listing 1 illustrates variable creation of a variety of types (int, float, string, array, and function).
邮局问题中引入了MathProg表达式和只使用整型的决策变量。
The post office problem introduced MathProg expressions and integer-only decision variables.
第二次读取把整型值存储在一个本地变量中(x1或x2)。
The second read stores the integer value in a local variable (x1 or x2).
解决方案是将浮点变量的地址强制转换成一个指向整型类型的指针,如下所示。
The solution is to cast the address of the floating point variable to a pointer to an int, which is then de-referenced as shown below.
PAT和EFAT能接受多种数据类型,包括整型、布尔型、浮点型、枚举型变量和有限大小的数组。
PAT and EFAT accept several data types, such as integers, Booleans, floats, enumerates and fixed-size arrays.
所以即使那个正确的答案是4,或别的数值,当你用一个整型数除以一个整型数,在那个变量的返回值里,只有,存储一个整型数的空间。
So even if the correct mathematical answer is 1.4 or whatever, when you divide an int by an int, you only have room in that variable, in the response for an actual integer.
所以即使那个正确的答案是4,或别的数值,当你用一个整型数除以一个整型数,在那个变量的返回值里,只有,存储一个整型数的空间。
So even if the correct mathematical answer is 1.4 or whatever, when you divide an int by an int, you only have room in that variable, in the response for an actual integer.
应用推荐