摘要
C语言是目前世界上最流行、使用最广泛的高级程序设计语言之一,具有高效、可移植性好等优点,特别是在嵌入式领域有着广泛的应用。随着程序的代码量不断增加,相应地应用也越来越复杂,因此C语言结构化的编程方式在某些方面显得有些力不从心,而适合这种应用的面向对象编程方式越来越被广泛地使用。可纯粹地面向对象的编程语言如C#J、AVA等又不适合应用在原本C语言应用地领域,特别是嵌入式方向。通过变通地用C语言的Struct结构从而实现面向对象编程方式,既可以保留C语言特有的优势又可以结合面向对象编程,从而编写出更加高效、健壮且可扩展性更好的应用程序。
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.
出处
《江苏海洋大学学报(人文社会科学版)》
2010年第12期61-63,共3页
Journal of Jiangsu Ocean University(Humanities & Social Sciences Edition)