官术网_书友最值得收藏!

Meet C++

One question you might have is, why use C++ at all? C++ is fast, very fast. What makes this the case is the fact that the code that we write is directly translated into machine executable instructions. These instructions make the game. The executable game is contained within an .exe file that the player can simply double-click to run.

There are a few steps in the process. First, the pre-processor looks to see if any other code needs to be included within our own code and adds it when necessary. Next, all the code is compiled into object files by the compiler program. Finally, a third program, called the linker, joins all the object files into the executable file, which is our game.

In addition, C++ is well established at the same time as being extremely up-to-date. C++ is an object oriented programming ( OOP ) language, which means we can write and organize our code in a proven way that makes our games efficient and manageable. The benefits, as well as the necessity for this, will reveal themselves as we progress through the book.

Most of the other code to which I referred is SFML, and we will find out more about SFML in just a minute. The pre-processor, compiler, and linker programs I have just mentioned, are all part of the Visual Studio Integrated Development Environment(IDE).

主站蜘蛛池模板: 盐城市| 苏尼特左旗| 临澧县| 枣强县| 荥阳市| 商南县| 樟树市| 万山特区| 阿拉善盟| 新邵县| 新营市| 万年县| 白水县| 水城县| 富民县| 壤塘县| 余庆县| 五指山市| 远安县| 福海县| 宝鸡市| 甘孜| 沂水县| 望江县| 睢宁县| 鸡泽县| 和硕县| 社会| 怀安县| 东源县| 景德镇市| 库尔勒市| 犍为县| 伊金霍洛旗| 肇东市| 三台县| 辰溪县| 中卫市| 沂源县| 霍州市| 万安县|