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

Summary

In this chapter, we saw the basic structure and syntax of the language. We started with an overview of the compilation model, the process of transforming C++ source code into an executable program. We wrote, compiled, and ran our first program, a simple main function that successfully returns an exit/return code.

We described the built-in arithmetic types that the language offers.

We learned how to declare and define variable names, and what the difference is between references and pointers. We also saw the use of the const qualifier and its advantages.

Furthermore, we talked about control flow statements and how to exploit them to perform more complex actions.

Finally, we presented arrays and multidimensional arrays, and the operation to perform to initialize them and access their values. In the next chapter, we will learn what functions in C++ are, and how and why we should use them in our code.

主站蜘蛛池模板: 上虞市| 新郑市| 昌都县| 西城区| 察隅县| 平安县| 三原县| 景德镇市| 丰镇市| 泰和县| 乐昌市| 兴文县| 扎兰屯市| 堆龙德庆县| 鹤壁市| 建宁县| 安福县| 大安市| 商丘市| 永登县| 泾川县| 肥城市| 澄江县| 苍山县| 宝鸡市| 邮箱| 阳高县| 肃北| 滨海县| 微博| 巨鹿县| 阿巴嘎旗| 汽车| 乌拉特中旗| 临颍县| 青海省| 老河口市| 凯里市| 丰台区| 建湖县| 黄浦区|