Void

来自YFRobotwiki
2016年12月26日 (一) 20:47Allblue讨论 | 贡献的版本

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索

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()
{
  // ...
}
 

扩展阅读 function declaration




返回Arduino语法参考列表

更多建议和问题欢迎反馈至 YFRobot论坛