![](https://csdnimg.cn/release/download_crawler_static/87535412/bg4.jpg)
Resources: The classic book about C is [The C Programming La
nguage].It's gone through several iterations and has expanded to about thr
ee times its original size, but it's still a good introduction to the languag
e. An excellent tutorial is [The Waite Group's C Primer Plus].
2、C++
C++语言是具有面向对象特性的 C 语言的继承者。面向对象编程,
或称 OOP 是结构化编程的下一步。OO 程序由对象组成,其中的对象是数
据和函数离散集合。有许多可用的对象库存在,这使得编程简单得只需要
将一些程序“建筑材料”堆在一起(至少理论上是如此)。例如讲,有专门
多的 GUI 和数据库的库实现为对象的集合。
C++ is the object-oriented successor to C. Object-oriented, or O
O, programs are the next step beyond structured programming. OO progra
ms are built out of objects, which are packages of data and functions col
lected into discrete units. There are many libraries of objects available tha
t make writing programs as simple as pulling together a collection of pro
gram "building blocks" (at least in theory). For example, there are many
GUI and database libraries that are implemented as collections of objects.
C++总是辩论的主题,专门是在游戏开发论坛里。有几项 C++的功
能,例如虚拟函数,为函数呼叫的决策制定增加了一个额外层次,批判家
专门快指出 C++程序将变得比相同功能的 C 程序来得大和慢。C++的拥护
者则认为,用 C 写出与虚拟函数等价的代码同样会增加开支。这将是一个
还在进行,而且不可能专门快得出结论的争辩。
C++ is the subject of controversy, especially in the game develo
pment community. There are features of C++, like virtual functions, that a
dd an extra layer of decision-making to function calls, and critics are qui
ck to point out that C++ programs can be larger and slower than C coun