“Void”的版本间的差异
来自YFRobotwiki
(以“The void keyword is used only in function declarations. It indicates that the function is expected to return no information to the function from which it was called....”为内容创建页面) |
|||
(未显示1个用户的3个中间版本) | |||
第1行: | 第1行: | ||
The void keyword is used only in function declarations. It indicates that the function is expected to return no information to the function from which it was called. | The void keyword is used only in function declarations. It indicates that the function is expected to return no information to the function from which it was called. | ||
+ | |||
译:void用于函数声明。它表明该函数将不返回任何信息。 | 译:void用于函数声明。它表明该函数将不返回任何信息。 | ||
<font color="orange" size="+1">'''示例'''</font> | <font color="orange" size="+1">'''示例'''</font> | ||
− | <pre> | + | <pre style="color:dimgray"> |
+ | |||
// actions are performed in the functions "setup" and "loop" | // actions are performed in the functions "setup" and "loop" | ||
// but no information is reported to the larger program | // but no information is reported to the larger program | ||
第19行: | 第21行: | ||
</pre> | </pre> | ||
+ | |||
<font color="orange" size="+1">'''扩展阅读'''</font> | <font color="orange" size="+1">'''扩展阅读'''</font> | ||
+ | |||
[https://www.arduino.cc/en/Reference/FunctionDeclaration function declaration] | [https://www.arduino.cc/en/Reference/FunctionDeclaration function declaration] | ||
+ | |||
+ | |||
2016年12月26日 (一) 21:02的最后版本
The void keyword is used only in function declarations. It indicates that the function is expected to return no information to the function from which it was called.
译:void用于函数声明。它表明该函数将不返回任何信息。
示例
// actions are performed in the functions "setup" and "loop" // but no information is reported to the larger program void setup() { // ... } void loop() { // ... }
扩展阅读
更多建议和问题欢迎反馈至 YFRobot论坛