Preprocessor directives, namespaces, functions, and standard I/O with iostream.
#)Lines beginning with # are Preprocessor Directives — they run before the code compiles.
The most common directive is #include, which inserts the contents of another file at that line.
// Angle brackets = standard library
#include <iostream>
// Quotes = custom/local headers
#include "Editor.h"
Names given to sections of code to avoid naming conflicts.
:: to invoke a namespace inline — e.g. std::coutusing namespace std; — defines std namespace scope for the entire fileusing std::cout; — more restrictive; only imports that specific namecout uses << (insertion operator) for outputcin uses >> (extraction operator) for inputcin reads input until it hits a space — so it can't capture a full line on its ownTo read an entire line including spaces, use getline():
string fullName;
getline(cin, fullName); // reads until newline, not just first word