我如何确保只允许用户输入整数?
请输入整数。
in是前面已经看到的One2OneChannelInt相同的实例;设备通过这个通道接收输入整数。
In is the same instance of One2OneChannelInt you saw previously; the device receives input integers on this channel.
如果该整数可以除输入整数,则不仅要加上该整数而且要加上除以计数整数的输入整数,并将它们添加到一个列表中。
If that integer divides the input integer, it adds not only that integer but the input integer divided by the counter-integer, and adds them to a list.
它还详细描述了三个记号(加号、减号和整数)组合的具体项,解析器在扫描整个输入流时希望遇到这些项。
It also details in concrete terms the composition of the three tokens (a plus sign, a minus sign, and an integer) that the parser expects to encounter while scanning through the input stream.
它的功能是输出来自它的输入通道的整数的中间汇总值。
Its function is to output running totals of the integers coming down its input channel.
为输入服务名的每个组件字指定一个较大的整数。
Assign a large integer to each of the constituent words of the input service name.
设备现在继续执行它的放大操作,用新更新的乘数乘上输入的整数。
The device now resumes its scaling-up operation, multiplying the input integers by the newly updated factor.
记号赋予器穿过输入流,每次检查一个字符,直到它遇到一个整数或者直至文件结束。
The tokenizer moves through the stream, inspecting characters one at a time until it encounters either an integer or the end of file.
作为整数输入超时值(以秒为单位),指定新人员查询结果过期后的持续时间。
Enter the timeout value as an integer in seconds, specifying the duration after a new staff query result will expire.
第三个可能是事件是从设备的输入通道接收整数的事件。
The third possible event is wherein an integer is received on the device's input channel.
对输入的整数求平方根,遍历所有小于或等于平方根的整数。
It loops through all of the integers that are less than or equal to the square root of the input integer.
后面的输出才是从输入流得到的整数。
The following outputs are the integers taken as-is from the input stream.
Delta2Int平行地把到达它的输入流的每个整数广播到它的两个输出通道。
Delta2Int broadcasts, in parallel, every integer arriving on its input streams to its two output channels.
in是One2OneChannelInt的实例,设备通过它接收输入的整数。
In is an instance of One2OneChannelInt on which the device receives input integers.
第一个方法(AddOne)使用整数作为输入参数。
The first method (AddOne) takes an integer as an input parameter.
更新是一个INSERT、UPDATE、DELETE或MERGE操作,可以有输入参数,返回一个整数(受影响的行数)。
UPDATE is an INSERT, UPDATE, DELETE, or MERGE operation that may have input parameters and that returns an integer (number of affected rows).
integerLiteral希望在输入流中立即遇到一个整数,否则该表达式将无效。
IntegerLiteral expects to immediately encounter an integer in the input stream, else the expression would be invalid.
实际上,PrefixInt进程的第一个输出是0,它是通过PlusInt进程添加到输入通道到达的第一个整数上的。
Essentially, the first output from the PrefixInt process is 0, which is added by the PlusInt process to the first integer to arrive on the input channel.
这里的逻辑是parse将在输入流中首先查找一个字符串,然后查找整数,最后查找一个实数。
The logic is that parse will look first for a string, then for an integer, and finally for a real, in that order, in the input stream.
这里应该指出,偶尔会出现breakback的数据总数输入在单元格中不会产生整数。
It should be noted that there may be occasions where the data total input for breakback does not result in integer data in cells.
当在输入流中遇到整数时会 触发该规则,该整数(象文本一样)的值被赋给实例变量 t.image 。
This rule fires when an integer is encountered in the input stream, and the value of that integer (as text) is assigned to the instance variable, t.image.
然后 PrefixInt 进程把整数作为输入发送给PlusInt进程,并添加到流中的第二个整数,如此类推。
The PrefixInt process then sends the integer as-is input to the PlusInt process to be added to the second integer in the stream, and so on.
PrefixInt 在它的整数输入流之前加上一个(用户配置的)整数。
PrefixInt prefixes a (user-configured) integer to its integer input stream.
对于数据类型,例如整数或字符,要生成输入域就比较简单,但是对于xml类型的输入参数,就要更复杂一些。
The latter is simple for data types, such as integer or characters, but more complex for input parameters of type XML.
要将电话类型从整数扩展为字符串是一件很容易的事,虽然这样做将会为服务检查输入的数据带来一些工作量。
It's an easy matter to expand the phone types from ints to strings, although it will be a bit more work for your service to validate the incoming strings.
比如说,我们可以指定输入必须为整数(如清单3所示)。
For example, you can specify that inputs must be integers (see Listing 3).
PlusInt在两个输入流中都接受整数,把整数加在一起,然后把结果输出到输出流。
PlusInt takes in integers on its two input streams, adds them together, and outputs the result to its output stream.
其中一个构造函数以双精度浮点数作为输入,另一个以整数和换算因子作为输入,还有一个以小数的String表示作为输入。
One takes a double-precision floating point as input, another takes an integer and a scale factor, and another takes a String representation of a decimal number.
使用xml:any数据类型就是这样的一个例子,它并没有将输入数据限定为整数或者字符串。
One example of this would be the use of the XML: any data type, as opposed to restricting input to an integer or string.
应用推荐