C++ — Command Reference
C++'s most used commands — power, performance, and object orientation. Each example is a complete program, complete with explanations and working examples.
7 categories · 17 commands
🖥️
Output & Input
Printing with cout, reading with cin.
cout <<cin >>📦
Variables
Typed variables, const, and auto.
Typed variableauto (type deduction)const🔢
Numbers & Math
Arithmetic and cmath.
Arithmetic ( + - * / % )cmath (sqrt / pow)✍️
String
std::string methods.
string + .length()substr() / find()📋
Array & Vector
Fixed arrays and flexible vectors.
Arrayvector🔁
Condition & Loop
Decision making and repetition.
if / elseforRange-based for ( : )while🧩
Function & Class
Functions and classes (OOP).
Functionclass