Void:修訂版本之間的差異

出自YFRobotwiki
跳轉到: 導覽搜尋
第 20 行: 第 20 行:
 
   
 
   
 
</pre>
 
</pre>
 +
  
 
<font color="orange" size="+1">'''扩展阅读'''</font>
 
<font color="orange" size="+1">'''扩展阅读'''</font>

2016年12月26日 (一) 20:49的修訂版本

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論壇