⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 编译预处理《实训 定义宏和使用宏定义.htm

📁 语言基础(初学都必修)包括数据类型、运算符与表达式,运算符和表达式,逻辑运算符和逻辑表达式,C语言中的关键字,定义宏和使用宏定义,数据类型转换
💻 HTM
📖 第 1 页 / 共 4 页
字号:
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt" align=left><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">实训思考</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt" align=left><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">程序中用宏定义分别定义了宏名</SPAN><SPAN lang=EN-US>N</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、</SPAN><SPAN lang=EN-US>YES</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、</SPAN><SPAN lang=EN-US>NO</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、</SPAN><SPAN lang=EN-US>SWAP</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、</SPAN><SPAN lang=EN-US>ORDER2</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">和</SPAN><SPAN lang=EN-US>ORDER3</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">,请同学们思考:如果要将这些宏定义收集到一个头文件中,再使用包含文件命令将它包含进来。如何修改程序来实现上述要求。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt" align=left><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">本章小结:本章主要介绍编译预处理的三种不同形式:宏定义、文件包含和条件编译。它们是在程序具体编译之前,预先进行处理。使用这些预处理命令可以编写出更易移植、易调试、模块化的程序,从而提高程序的开发效率。</SPAN></P></SPAN></SPAN></SPAN></SPAN></SPAN></SPAN></SPAN> </td>
			</tr>
		</table>
		</div>
		</td>
    </tr>
    <tr>
      <td width=758 bgColor=#b1bde0>
      <P align=right>教程录入:jiarucheng&nbsp;&nbsp;&nbsp;&nbsp;责任编辑:Songshao00&nbsp;  </P></td>
    </tr>
    <tr>
      <td height=16>
		<form method="POST" action="--WEBBOT-SELF--">
			<!--webbot bot="SaveResults" U-File="fpweb:///_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->
			<p align="left">&nbsp;&nbsp;&nbsp; <li>上一个教程: <a class='LinkPrevArticle' href='/c/ShowArticle.asp?ArticleID=136' title='文章标题:编译预处理
作&nbsp;&nbsp;&nbsp;&nbsp;者:佚名
更新时间:2006-6-15 20:20:23'>编译预处理</a></li><BR>&nbsp;&nbsp;&nbsp; <li>下一个教程: <a class='LinkNextArticle' href='/c/ShowArticle.asp?ArticleID=197' title='文章标题:枚举
作&nbsp;&nbsp;&nbsp;&nbsp;者:佚名
更新时间:2006-6-16 19:46:16'>枚举</a></li></p>
		</form>
		</td>
    </tr>
       <tr>
      <td width=758 bgColor=#adb9dd>##相关推荐:</td>
    </tr>
    <tr>
      <td width=758>
<div align=right>
        <table cellSpacing=0 cellPadding=0 width="99%">
        <!-- MSTableType="layout" -->
          <tr>
            <td vAlign=top height=118><a class='LinkArticleCorrelative' href='/c/ShowArticle.asp?ArticleID=136' title='文章标题:编译预处理
作&nbsp;&nbsp;&nbsp;&nbsp;者:佚名
更新时间:2006-6-15 20:20:23' target="_self">编译预处理</a><br></td>
          </tr>
        </table>
      </div></td>
    </tr>
  </table>
  <table height=164 cellSpacing=0 cellPadding=0 width=760 border=0>
    <tr>
      <td width=760 background=/images1/index_32.gif height=26>
      <P align=center>| <A class=Bottom onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://lsjs.gsau.edu.cn');" href="#">设为首页</A> | <A class=Bottom href="javascript:window.external.addFavorite('http://lsjs.gsau.edu.cn','蓝色极速');">加入收藏</A> | <A class=Bottom href="mailto:wxw404@gmail.com">联系站长</A> | <A class=Bottom href="/FriendSite/Index.asp" target=_blank>友情链接</A> | <A class=Bottom href="/Copyright.asp" target=_blank>版权申明</A> | </P></td>
    </tr>
    <tr>
      <td width=760 background=/images1/index_33.gif height=138>
      <P align=center>Copyright (C) 蓝色极速 All Rights Reserved<BR>建议使用:1024*768分辨率,16位以上颜色、Netscape6.0<BR>IE5.0以上版本浏览器和中文大字符集</P></td>
    </tr>
  </table>
</body>
</html>




⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -