February 2022
Beginner
848 pages
22h 40m
English
At its heart, a program is a set of commands executed in sequence. These commands are programmed into expressions and statements and use operators to perform specific calculations or actions.
In this lesson, you learn
■ What statements are
■ What blocks or compound statements are
■ What operators are
■ How to perform simple arithmetic and logical operations
Languages—spoken or programmed—are composed of statements that are executed one after another. Let’s analyze the first important statement you learned:
cout << "Hello World" << endl;
A statement using cout displays text onscreen, via the console. Every statement in C++ ends with a semicolon (;), which defines ...
Read now
Unlock full access