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

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.

主站蜘蛛池模板: 德格县| 永济市| 天门市| 登封市| 吴堡县| 吉林市| 河源市| 乌鲁木齐县| 新丰县| 云南省| 宁化县| 阿坝| 瑞安市| 光泽县| 万宁市| 楚雄市| 贵德县| 伽师县| 富川| 维西| 酒泉市| 崇文区| 清苑县| 酒泉市| 徐州市| 清徐县| 孟村| 靖西县| 定南县| 上栗县| 和林格尔县| 汽车| 都昌县| 宁夏| 汉川市| 巴南区| 永川市| 乾安县| 林芝县| 航空| 郁南县|