#include

#include 是當你想要在程式碼內加入外部函式庫時使用。它可以替你加入龐大的標準 C 函式庫以及一些特別設計給 86Duino 使用的函式庫。

DJGPP C 函式庫參考連結。(DJGPP 是 86Duino 所使用的編譯器)

注意 #include#define 相同,最尾端無須加入分號。若是加入了也合乎語法,但可能造成未預期的錯誤。

範例

本範例引入了一個可讀取 BIOS 內部計數器,此計數器數值由午夜 0 點以 18.2 赫茲的頻率遞增。

#include <bios.h>

long ticks = biostime(0, 0);

語法參考主頁面

本頁由熱血青年 LBU 譯自英文版。

The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.