<div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"><font size="4" face="標楷體">假如在C++ 中要呼叫C 的function,<br /> 則需加入如下宣告:</font><br /><font size="4" face="標楷體">#ifdef __cplusplus </font></div> <div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"><font size="4" face="標楷體">extern <span style="color: rgb(204, 0, 0);">"C"</span> <span style="color: rgb(0, 102, 0); font-weight: bold;">{</span></font></div> <div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"><font size="4" face="標楷體">#endif </font></div> <div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"><font size="4" face="標楷體"> </font></div> <div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"><font size="4" face="標楷體"><span style="color: rgb(0, 128, 0);">/* put your c function definiction here */</span></font></div> <div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"><font size="4" face="標楷體"> </font></div> <div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"><font size="4" face="標楷體">#ifdef __cplusplus </font></div> <div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"><font size="4" face="標楷體"><span style="color: rgb(0, 102, 0); font-weight: bold;">}</span></font></div> <div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"> </div> <font face="標楷體"></font><font size="4" face="標楷體">#endif </font><!-- more -->