2 Exploring C++ fundamentals
This chapter covers
- Reviewing basic programming concepts
- Writing your first C++ program
- Learning about C++ building blocks
- Understanding principles of memory allocation
- Declaring and initializing variables
- Learning about constant variables and when to use them
After reading the first chapter, you are probably excited about diving in and learning C++. In this chapter, we continue the journey as you get familiar with some basic programming concepts, as well as the importance of punctuation, logic, syntactical rules, indentation, and comments in your code. All together they will help you write functioning and beautiful code in C++, which is easy to maintain and follow.
You will start this chapter by learning some basic concepts and definitions in computer programming, and understand the role of the compiler, which turns your code into machine code, and your IDE, which stands for Integrated Development Environment. The IDE is used to write and run your code. We will then move to writing your very first C++ program. We explain every part of code you will write so you can feel comfortable in your first C++ hands-on experience.