英语单词查询
void
「void」的意思
n. 空间,空白,空虚;空虚感,失落感;(墙、建筑物上的)孔隙;(桥牌和惠斯特用语)缺门; adj....
n.空间,空旷,空虚,怅惘adj.空的,无人的,空闲的,无效的,无用的,没有的
「void」的用法
void空的,虚无的 - 在编程中,void通常表示一个函数不返回任何值。
「void」的例句
The function does not return any value.
该函数不返回任何值。
void main() { ... }
void main() { ... }
The void function is used to indicate that no value is returned.
空函数用于表示不返回任何值。
In C++, void can also be used as a type for pointers and references.
在C++中,void也可以用作指针和引用的类型。
The function has no return type, so it returns void.
该函数没有返回类型,因此它返回void。
A void function can be called without assigning its return value to a variable.
空函数可以被调用而不需要将它的返回值赋给一个变量。
In Java, void is used to indicate that a method does not return a value.
在Java中,void用于表示一个方法不返回一个值。
The void keyword in C# is used to indicate that a method does not return a value.
在C#中,void关键字用于表示一个方法不返回一个值。
A void function in JavaScript doesn’t return any value and the default return value is undefined.
JavaScript中的空函数不会返回任何值,默认的返回值是undefined。
In Python, the concept of void doesn’t exist as such. Instead, functions can be defined without a return statement, which implicitly returns None.
在Python中,并不存在空的概念。相反,可以通过定义没有返回语句的函数来实现,这会隐式地返回None。