There are two versions of this optimization available, Named Return Value Optimization(NRVO) and Return Value Optimization(RVO).
一个带返回值的return语句不使用小括号”()”,除非它们以某种方式使返回值更为显见。
A return statement with a value should not use parentheses unless they make the return value more obvious in some way.
如果你真的要用任何scanf的变体,你要确保检查返回值,以确定找到了期待的值。
If you do use any scanf variant, be sure to check the return value to make sure that the expected number of items were found.
该结构包含有来自处理该消息的window程序的返回值,以及消息中的参数。
The structure contains the return value from the window procedure that processed the message, as well as the message parameters associated with the message.
如果你期望用户键入一个整型数,那么你可以试着将返回值转化为int:.
If you expect the user to type an integer, you can try to convert the return value to int.
与执行同样功能的函数所不同的是,参数与返回值可以是任意算术类型,甚至可以是指针。
Unlike a function to do the same thing, the arguments and returned value may have any arithmetic type or even be pointers.
G和H方法是正确的,这是因为所有可能的执行路径都以一个指定返回值的return语句结束。
The G and H methods are correct because all possible execution paths end in a return statement that specifies a return value.
但是在脚本中,如果你单单调用一个有返回值函数,返回值就永远丢失了!!
But in a script, if you call a fruitful function all by itself, the return value is lost forever!
只有函数,所有的函数都有返回值(尽管可能为None),并且所有的函数都以def开始。
Everything is a function, all functions return a value(even if it's None), and all functions start with def.
DAY函数返回值9,然后为该值加5天,得到结果14。
The DAY function returns the value 9, and 5 days are added to that, resulting in 14.
要返回值,只需将return(或计算值的表达式)放在return关键字之后即可。
To return a value, simply put the value(or an expression that calculates the value) after the return keyword.
对于类型论,函数类型接受值类型A并返回值类型B可写为A→B或BA。
In type theory, the type of functions accepting values of type A and returning values of type B may be written as A→ B or BA.
English
Bahasa indonesia
日本語
عربى
Български
বাংলা
Český
Dansk
Deutsch
Ελληνικά
Español
Suomi
Français
עִברִית
हिंदी
Hrvatski
Magyar
Italiano
Қазақ
한국어
മലയാളം
मराठी
Bahasa malay
Nederlands
Norsk
Polski
Português
Română
Русский
Slovenský
Slovenski
Српски
Svenska
தமிழ்
తెలుగు
ไทย
Tagalog
Turkce
Українська
اردو
Tiếng việt