?? c94.htm
字號(hào):
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>概要 </title>
<script language="javascript">
var prePage="http://www.nec.sjtu.edu.cn/support/Course/C/c/c9/c/c9/c93.htm";
var nextPage="c/c10/c101.htm";
function showwin(url,winname,properties){
window.open(url,winname,properties)
}
</script>
<link rel="stylesheet" href="../cstyle.css" type="text/css">
</head>
<body background="../img/mainback.jpg" bgproperties="fixed">
<h2 align="center"><font face="楷體_GB2312">9.4 概要</font></h2>
<hr>
<blockquote>
<p>在這一課里, 你已經(jīng)學(xué)了<ul>
<li>兩種宏定義類型 --- 帶參數(shù)的和不帶參數(shù)的。</li>
<li>怎樣定義符號(hào)常量 例如: #define fingers 10</li>
<li>怎樣定義一個(gè)宏函數(shù) 例如: #define NEG(x) (-(x))</li>
<li>文件名必須被括在尖括號(hào)或者雙引號(hào)里。</li>
<li>.h 后綴常常習(xí)慣地用在頭文件中,
它包括的信息是程序開始時(shí)就需要的。</li>
<li>怎樣包括別的文件呢? 例如: #include "albaniian.h"</li>
<li>和 #define,#include 一樣, 除了空格之外,其它任何符號(hào)均不可出現(xiàn)在
#undef,#ifdef,#ifndef,#endif,#else 和 #if 之前。</li>
<li>怎樣定義一個(gè)頭文件 答案: <br>
#if filename=="IBM";<br>
#include "IBM.h"<br>
#else<br>
#include "otherfile.h"<br>
#endif<br>
</li>
</ul>
</blockquote>
<p align="center"><a href="http://www.nec.sjtu.edu.cn/support/Course/C/c/c10/c101.htm"><img src="../img/next.gif" width="145"
height="30" alt="next.gif (3633 bytes)" border="0"></a></p>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -