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

一种基于模块的类实现
引用本文:徐宝磊,何先波. 一种基于模块的类实现[J]. 数字社区&智能家居, 2008, 3(12): 1670-1672
作者姓名:徐宝磊  何先波
作者单位:西华师范大学计算机学院,四川南充637002
基金项目:面向软实时应用的Linux内核实时性能改造,四川省教育厅青年基金项目(200SB027);面向通信领域的嵌入式软件平台.国家“863”计划项目(2002AAIZ22306);移动救灾物资管理系统研究,西华师范大学校基金项目(08A020)
摘    要:在面向对象编程中类是对象的集合体,实现封装的关键。针对面向对象语言和C语言的优缺点,通过对C语言支持模块编程特性的讨论,提出一种用C语言文件来实现面向对象中类的特性的方法,使面向对象技术应用在资源紧张的环境中。通过实例表明程序具有较高的执行效率,并且保持良好的可维护性。

关 键 词:面向对象    模块  结构体  C

Implementation of Class Based on Module
XU Bao-lei,HE Xian-bo. Implementation of Class Based on Module[J]. Digital Community & Smart Home, 2008, 3(12): 1670-1672
Authors:XU Bao-lei  HE Xian-bo
Affiliation:(Computer College, China West Normal University, Nanchong 637002, China)
Abstract:In the Object-Oriented, the class is the aggregation of objects, the key of implementing the encapsulation. According an advantage of Object-Oriented technique and C language, through discuss the support of the C language to module programme, put forward a kind of method of characteristic which implementation the class in the Object-Oriented with the C language. Make the problem has heigher executive efficiency, and keeps the high maintainability. Giving some codes to explain how it implementation.
Keywords:Object-Oriented  class  module  struct  C
本文献已被 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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