2.1 — Introduction to functions

In the last chapter, we defined a function as a collection of statements that execute sequentially. While that is certainly true, that definition doesn’t provide much insight into why functions are useful. Let’s update our definition: A function is a reusable sequence of statements designed to do a particular job. …

1.2 — Comments

A is a programmer-readable note that is inserted directly into the source code of the program. Comments are ignored by the compiler and are for the programmer’s use only. In C++ there are two different styles of comments, both of which serve the same purpose: to help programmers document the …

0.6 — Installing an Integrated Development Environment (IDE)

An is a piece of software designed to make it easy to develop, build, and debug your programs. A typical modern IDE will include: Some way to easily load and save your code files. A code editor that has programming-friendly features, such as line numbering, syntax highlighting, integrated help, name …

0.3 — Introduction to C/C++

The C language was developed in 1972 by Dennis Ritchie at Bell Telephone laboratories, primarily as a systems programming language (a language to write operating systems with). Ritchie’s primary goals were to produce a minimalistic language that was easy to compile, allowed efficient access to memory, produced efficient code, and …