Chapter 1

Getting Started

Lesson Objectives

By the end of this chapter, you will be able:

  • Explain the C++ compilation model
  • Execute the main() function
  • Illustrate the declaration and definition of variables
  • Determine built-in arithmetic types, references, and pointers
  • Explain the scope of a variable
  • Use control flow statements
  • Define and utilize arrays

In this chapter, you will learn about the usage of variables and control flow statements to create more robust programs.

Introduction

C++ has been a major player in the software development industry for more than 30 years, supporting some of the most successful companies in the world.

In recent years, interest in the language has been growing more than ever, and it is an extremely popular ...

Get C++ Fundamentals now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.