首页 | 本学科首页   官方微博 | 高级检索  
     检索      

C语言中使用#define常见问题解析
引用本文:宋雅娟,刘刚.C语言中使用#define常见问题解析[J].长春大学学报,2005,15(2):41-43.
作者姓名:宋雅娟  刘刚
作者单位:长春大学计算机科学与技术学院,长春大学计算机科学与技术学院 吉林长春 130022,吉林长春 130022
摘    要:提出了C语言中的#define命令在使用过程中的常见问题,分析了问题产生的原因并提出了解决方法,从编译程序对C源程序的处理过程阐述宏展开的时机,力求从根本上对宏定义进行阐述,并在最后指出使用宏定义的优点,以促使对宏定义使用的重视。

关 键 词:宏定义  宏名  预处理
文章编号:1009-3907(2005)02-0041-03
修稿时间:2004年10月28日

An analysis of familiar problems on using #define in C program
SONG Ya-juan,LIU Gang.An analysis of familiar problems on using #define in C program[J].Journal of Changchun University,2005,15(2):41-43.
Authors:SONG Ya-juan  LIU Gang
Abstract:This thesis presents some familiar problems on using #define in C program,analyzes the reason why the problems appear and provides the method for solving them.It explains the opportunity that launches from the course of treatment to C program of compiler,makes every effort to explain the macro definition fundamentally,and points out the advantage of using the macro definition at the end in order to draw the attention of it.
Keywords:macro definition  macro name  pretreatment  
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号