这是每个游戏编程FAQ 里都有的问题。这个问题每星期都会在游戏开发论坛上被问上好几次。这是个很好的问题,但是,没人能给出简单的答案。在某些应用程序中,总有一些计算机语言优于其他语言。下面是几种用于编写游戏的主要编程语言的介绍及其优缺点。希望这篇文章能帮助你做出决定。 This is a question that belongs in every game programming FAQ. It seems to be asked in a game development forum several times a week. It’s a good question, though, and not one with an easy answer. There are computer languages that work better for some applications than others. Here is a list of the major programming languages used to write games along with descriptions, advantages, and disadvantages. Hopefully this list will help you make a decision. 1、C 语言 如果说 FORTRAN 和 COBOL 是第一代高级编译语言,那么 C 语言就是它们的孙子辈。C语言是Dennis Ritchie 在七十年代创建的,它功能更强大且与 ALGOL 保持更连续的继承性,而 ALGOL 则是COBOL 和 FORTRAN 的结构化继承者。C 语言被设计成一个比它的前辈更精巧、更简单的版本,它适于编写系统级的程序,比如操作系统。在此之前,操作系统是使用汇编语言编写的,而且不可移植。C 语言是第一个使得系统级代码移植成为可能的编程语言。 If FORTRAN and COBOL were the first compiled high-level languages, then C is their grandchild. It was created in the 70’s by Dennis Ritchie as a tighter and more coherent successor to ALGOL, which was a structured successor to COBOL and FORTRAN. It was designed to be a smaller and simpler version of its predecessors, suitable for writing system-level programs, like operating systems. Before then, operating systems were hand-coded in assembly and were not portable. C was the first programming language that made portability a reality for system-level code. C 语言支持结构化编程,也就是说 C 的程序被编写成一些分离的函数呼叫(调用)的集合,这些呼叫是自上而下运行 ,而不像 ...