Modern C++: The Good Parts/Anatomy of a global greeting

Let's examine our program from last time in more detail.

Code & explanation
These includes are required by the standard, so anyone who wants to offer a proper C++ compiler must provide them. Several includes are required that way, and the set of them is called the standard library.
 * allows us to use  and  . All of our programs will include it, because they're all console programs.
 * is needed anytime you want a string (a value that represents text), which will also be all of our programs.

As mentioned before,  is required for all C++ programs. Ignore the parentheses and curly brackets for now; just know that they're necessary.

and  are for console output and input, respectively. is the namespace, which basically means who gave them to us, and this one is the standard namespace - i.e., these are from the standard library. The "c" just means C++ inherited them from its "parent" language, C.

The "\n" at the end of the string is a line break or newline; it causes further text to be printed on an additional line.

Vocabulary

 * standard library: several useful pieces of code required by the C++ standard, shipped with all C++ compilers, all under the namespace.
 * string: a value that represents text.
 * namespace: a directory of names, or where to look for something by name.
 * newline: a character which separates two lines of text. Also called a line break. Syntax: