* In C++, type deduction also exists. The auto type will try to match the variable type with its
value
accordingly, and decltype(foo) bar will create 'bar' with the same type as 'foo'.

Syntax

Keyword

Meaning

std::cout

scope operator; shows that the method on the right side is under the namespace on the left.Note that if we want to use a default namespace, we may define "using namespace std" to avoid it for all std methods.

std::cout << "Hello World!"

insertion; sends string to cout

The Basics

Here is a sample that shows the structure of a class and how static methods work.