c语言模拟java面向对象_面向对象设计模式C语言实现.PDF
第15卷第l1期 微機發展 V01.15NO.11
2005年11月 I)evdopment NOV.2()()5
Micrtxx)mpuler
面向對象設計模式的C語言實現
朱進
(東南大學軟件學院,江蘇南京210096)
摘要:介紹了C語言成為嵌入式技術領域主要的程序設計語言的原因,及當前用C語言所編寫的程序仍然存在的問題,
然后介紹了面向對象的設計模式的概念及優點。并提出將面向對象的思想與C語言結合起來,接著用C語言實現了部分
面向對象的設計模式,給出了其代碼,并做了相應的注釋,為優化C程序的結構提供了途徑。最后總結了在C程序中使用
C)。
這些設計模式的價值。文中所指的C語言均為標準C(ANSI
關鍵詞:面向對象;設計模式;程序結構;C語言
中圖分類號:TP311.5 文獻標識碼:A 文章編號:1005—3751(2005)11—0099—03
The00 Patterns’SRealizationinCLanguage
Design
刪Jin
(SoftwareInstitute,SoutheastUniversity,Nanjing210096,China)
in fieldat
articleintroducesthere880nC becomesthe languageembeddedfirst,and
Abstracts:The whylanguage mostlyprogram—design
in that inC itintroducestheOO andex—
introducestheexistent programmedlanguage.Then designpatterns’sconcept
questionprogram
OO thearticlerealizes theOO inC
out C with then partial designpatternslanguage,
eellenee,andpointstouchinglanguage thinking.And
offers structure.AtlaSt。thearticlesummarizesUS—
andofferstheCcodeeompaniedwithnotes.ItapproachforoptimizingtheCprogram’S
these valueinC C isANSICinthearticle.
ing patterns’s language.Thelanguage
Keywords:OO;designpatterns;programstructure;Clanguage
O引 言 展,因此,如何對C程序結構進行優化再次成為討論的焦
C語言是一種高級語言,它語言功能豐富,目標程序 點。使用面向對象的思想及模式對C程序結構進行優
效率高,可移植性好,既具有高級語言的優點,又具有低級 化,
總結
以上是生活随笔為你收集整理的c语言模拟java面向对象_面向对象设计模式C语言实现.PDF的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: MySQL笔记创建表结构_mysql笔记
- 下一篇: 荣耀猎人游戏本V700抢先体验荣耀猎人游