节点文献
面向对象设计模式的C语言实现
The OO Design Patterns’s Realization in C Language
【摘要】 介绍了C语言成为嵌入式技术领域主要的程序设计语言的原因,及当前用C语言所编写的程序仍然存在的问题,然后介绍了面向对象的设计模式的概念及优点。并提出将面向对象的思想与C语言结合起来,接着用C语言实现了部分面向对象的设计模式,给出了其代码,并做了相应的注释,为优化C程序的结构提供了途径。最后总结了在C程序中使用这些设计模式的价值。文中所指的C语言均为标准C(ANSI C)。
【Abstract】 The article introduces the reason why C language becomes the mostly program-design language in embedded field at first,and introduces the existent question in program that programmed in C language.Then it introduces the OO design patterns’s concept and excellence,and points out touching C language with OO thinking.And then the article realizes partial the OO design patterns in C language,and offers the C code companied with notes.It offers approach for optimizing the C program’s structure.At last,the article summarizes using these patterns’s value in C language.The C language is ANSI C in the article.
- 【文献出处】 微机发展 ,Microcomputer Development , 编辑部邮箱 ,2005年11期
- 【分类号】TP312
- 【被引频次】9
- 【下载频次】488