Sari la conținut
Modulul 1

Fundamentele C++

Master the core building blocks of C++ — from your first program to control flow and functions.

Getting Started

  1. 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.

  2. 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.

  3. 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

  1. Operatori, expresii și conversii

    Prioritatea operatorului principal, conversiile aritmetice, pericolele amestecării semnate/nesemnate și cele patru modele C++ numite.

  2. 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

  1. Functions & Parameter Passing

    Master the different ways to pass arguments in C++, understand return value optimization, function overloading, and modern attributes like [[nodiscard]].

  2. Namespaces, Headers & the ODR

    Organize code with namespaces, understand header/source file separation, the One Definition Rule, include guards, forward declarations, and ADL.

  3. 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.