摘要
从C语言中预处理、宏的基本概念和应用出发,对宏、函数和enum定义的枚举常量在程序设计时是否方便设计、维护和调试及效率进行了比较,归纳总结了这三者的优与劣,为程序设计的初学者扩展学习思路,加深理解预处理和宏及其应用,提高其编程能力,巩固基础知识、培养解决实际问题能力有参考意义。
This article starts with the pretreatment of C language,Definition and Application of Macro,and summarizes the advantages and disadvantage among them by comparing Macro,Function and Definition of Enum that if the program are easily designed,protected and debuged,also in the efficiency side.It is good for freshmen to extend the thought of studying,deepen the pretreatment and application of Macro,increase the ability of program designing,on purpose of consolidating the basic knowladge,resolving the pratical problems.
出处
《电脑编程技巧与维护》
2011年第2期18-19,共2页
Computer Programming Skills & Maintenance
关键词
C语言
预处理
宏
C language
pretreatment
Macro