Fundamentele C++
Master the core building blocks of C++ — from your first program to control flow and functions.
Getting Started
The C++ Machine Model
Understand how C++ maps to hardware, the compilation pipeline from source to executable, translation units, and the crucial distinction between stack and heap memory.
Tipuri, valori și sistemul de tipuri
Explore C++'s fundamental types, fixed-width integers, initialization forms, auto deduction, and the const system that enforces correctness at compile time.
Variabile, domeniul de aplicare și durata de viață
Learn the four storage durations, how scope and lifetime are distinct concepts, initialization pitfalls, and the static initialization order fiasco.
Expresii și flux de control
Operatori, expresii și conversii
Prioritatea operatorului principal, conversiile aritmetice, pericolele amestecării semnate/nesemnate și cele patru modele C++ numite.
Controlul fluxului și buclelor
Stăpânește toate structurile fluxului de control C++, inclusiv if/else, switch, toate formele de buclă, for bazate pe intervale, inițializatorii C++17 și legăturile structurate.
Functions & Code Organization
Functions & Parameter Passing
Master the different ways to pass arguments in C++, understand return value optimization, function overloading, and modern attributes like [[nodiscard]].
Namespaces, Headers & the ODR
Organize code with namespaces, understand header/source file separation, the One Definition Rule, include guards, forward declarations, and ADL.
I/O: fluxuri, formatare și std::print
Stăpânește I/O C++ de la iostream clasic la formatul standard standard și std::print modern, inclusiv stările fluxului, I/O fișiere și capcanele comune ale bufferului.