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

用C语言实现面向对象研究
引用本文:丁慧. 用C语言实现面向对象研究[J]. 淮海工学院学报(社会科学版), 2010, 8(12): 61-63. DOI: 10.3969/j.issn.1008-3499.2010.09.023
作者姓名:丁慧
作者单位:常州信息职业技术学院,江苏常州213164
摘    要:C语言是目前世界上最流行、使用最广泛的高级程序设计语言之一,具有高效、可移植性好等优点,特别是在嵌入式领域有着广泛的应用。随着程序的代码量不断增加,相应地应用也越来越复杂,因此C语言结构化的编程方式在某些方面显得有些力不从心,而适合这种应用的面向对象编程方式越来越被广泛地使用。可纯粹地面向对象的编程语言如C#J、AVA等又不适合应用在原本C语言应用地领域,特别是嵌入式方向。通过变通地用C语言的Struct结构从而实现面向对象编程方式,既可以保留C语言特有的优势又可以结合面向对象编程,从而编写出更加高效、健壮且可扩展性更好的应用程序。

关 键 词:C语言  面向对象  OO(ObjectOriented)  Linux    结构体

Object-oriented Programming Research with C Language
DING Hui. Object-oriented Programming Research with C Language[J]. Journal of Huaihai Institute of Technology, 2010, 8(12): 61-63. DOI: 10.3969/j.issn.1008-3499.2010.09.023
Authors:DING Hui
Affiliation:DING Hui(Changzhou College of Information Technogy,Changzhou 213164,China)
Abstract:As one of the world's most popular and most widely used high-level programming language,C language is highly efficient and portable and has a wide range of embedded applications.With the continuous increase of code of program,the corresponding application becomes even more complex and C language structured programming pattern gradually seems to be powerless in some fields.As a result,object-oriented programming has become more widely used.Purely object-oriented programming languages,like C#,JAVA,are not suitable for application in fields that original C language is applied,especially in embedded systems.This paper holds that appropriate adaption of the structure with the C language can achieve object-oriented programming.On the one hand,it retains the unique advantages of C language;on the other,it combines object-oriented programming and can program more efficient,robust and scalable applications.
Keywords:C Language  object-oriented  Linux  class  struct
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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