函数返回值使用return语句指定。
The return value of the function is specified with a return statement.
始终正确处理返回动态分配的内存引用的函数返回值。
Always properly handle return values of functions returning references of dynamically allocated memory.
这同样适用于过程的参数和任何函数返回值。
This applies also to that procedure's parameters and to any function return.
能给其他函数返回值。
清单10说明处理函数返回值的代码应该是什么样的。
Listing 10 shows what should the code to handle this situation should look like.
函数返回值将在第4天“表达式和语句”中详细讨论。
Returning values from functions is discussed in detail on Day 4, "Expressions and Statements."
你通常会把函数返回值赋给拥有更特定类型变量的时候遇到这样的错误。
You usually see this error when you assign a value returned from a function to a variable with a more specific type.
当您使用一个字符串作为从一个函数返回值,它将正常工作。
When you are using a string literal as a return value from a function, it will work properly.
EditText构造函数也覆盖构造函数返回值,如清单2 所示。
The EditText constructor also overrides the constructor return value, as Listing 2 shows.
然而,如果有任意一个函数返回值使用了名称,那么所有函数返回值都必须使用名称。
However, if any returned value of the function has a name, then all must have names.
当进行条件分支、向函数传递值、从函数返回值以及其他操作时,首选槽内的值才是关键的。
When doing conditional branching, passing values to functions, returning a value from a function, and several other scenarios, the value in the preferred slot is the one that matters.
盲目信任(Blind faith):缺乏对bugfix或子函数返回值的正确性检查。
Blind faith: Lack of checking of (a) the correctness of a bug fix or (b) the result of a subroutine.
probev_timestamp_t是一种特殊的数据类型,用来从VUE时间戳函数返回值。
probev_timestamp_t is a special data type used to return the value from the VUE timestamp function.
如果成功,则此函数返回值缓存的大小,如果指定的名称并不是一个合法的环境变量名,则返回0。
This function returns the size of the value buffer on success and 0 if the name specified is not a valid environment variable name.
任何函数的返回值都是子句(在我们的示例中只有一行)中最后一个表达式的结果。
The return value of any function is the result of the last expression in that clause (in our examples there is only one line).
例如,必须用参数形式包括进类型信息,必须用函数形式返回值和所有变量的类型。
For example, you must include type information with arguments, return values with functions, and types for all variables.
c语言没有包含一种内置的功能来处理异常,因此默认情况下,如果您不处理函数的返回值,它就会将其忽略。
C doesn't include a built-in capability to handle exceptions, so by default it ignores any function returns if you don't do anything with them.
如果启用了模式感知(参阅后面的 模式感知),这些类型的值可以来自转换的输入文档或者函数的返回值。
Values of these types can come from the input document of a transformation, if schema awareness is in effect (see Schema awareness further ahead), or as the return value of a function.
最重要的是,不能信任函数的返回值。
Most crucially, the function's return value can't be trusted.
注:这是远程过程的参数数量,包括REFCURS OR参数,但是不包括函数的返回值。
Note: This is the number of parameters of the remote procedure — including REFCURSOR parameters, but not including the return value of functions.
服务器通过另一个 XML编码的SOAP信封返回响应,这一次是函数的返回值。
The response from the server is sent back as another XML-encoded, SOAP envelope, this time with the return value from the function.
因此,不能获取函数的返回值。
Therefore, it cannot retrieve the return value of a function.
如果函数成功,则返回值非零。
函数和返回值。
调用这个函数,然后将返回值存储到一个变量中。
Call the function, and store the return value in a variable.
您也可以将函数的返回值和test或while之类的命令结合使用来控制分支和循环。
You might also use return values from functions with command such as test or while to control branching or looping.
arg1是要探测的函数的返回值,用于退出探测。
Arg1 is the return value from the function being probed for return probe.
函数还可返回值(更为正式的说法是:对象),包括像tuple这样的python容器。
The function can also return a value (or, more formally, an object), including a Python container like a tuple.
使用一个特殊的内置变量__arg 3捕捉函数的返回值。
A special built-in variable, __arg3, is used to capture the return value from a function.
清单2.适当处理readapi函数的返回值。
Listing 2. Proper handling of the read API function return value.
应用推荐