所以increment函数不带入参,也不返回值,它也没做什么。
So this function increment takes nothing, returns nothing, and yet it does something.
因为例子2没有返回值标签,序列不返回值(假设,建模的序列不需要返回值)。
And since example 2 does not have a return value labeled, the sequence does not return a value (presumably, the sequence being modeled does not need the return value).
我们认为不返回值的查询实际上返回一个值;即一个整数,其中包含受查询影响的行数。
Queries that we think of as returning no value actually do return a value - an integer containing the number of rows affected by the query.
在某些情况下可能出现不兼容,例如两个接口使用不同的返回值类型定义同一个方法。
Incompatibilities can arise when, for example, two interfaces define the same method with different return value types.
我的风格是,当返回内容很明显时不标出返回值,这样就不会把序列图搞乱。
My style is not to indicate the return values when it's obvious what is being returned, so I don't clutter my sequence diagrams.
如果函数被用作一个过程,并且没有任何有用的返回值,那么可以不包含return语句。
You can include none at all if the function is being used as a procedure and has no useful return value.
D {format}:括弧里的字符串被传递给strftime(3)函数,返回值填充到提示符中。如果不传参数,会按照系统默认的当地时间格式来显示。
D {format} : the format is passed to strftime (3) and the result is inserted into the prompt string; an empty format results in a locale-specific time representation.
更糟的是,函数的返回值是数组中的一个字节的地址,不。
Worse, the return value of the function is a byte in the array, not the address.
更糟的是,函数的返回值是数组中的一个字节的地址,不。
Worse, the return value of the function is a byte in the array, not the address.
应用推荐