Back
Portfolio
← Back to Portfolio

CPP Module 01

Allocazione di Memoria e Riferimenti

Memory Allocation & References

Informazioni sul Progetto

CPP Module 01 si concentra sulla gestione della memoria in C++, introducendo gli operatori new e delete, i riferimenti, i puntatori a membri e le differenze tra allocazione su stack e heap. Questo modulo approfondisce la comprensione di come il C++ gestisce la memoria rispetto a malloc/free del C.

Gli studenti imparano i tipi riferimento, gli stream per file e le istruzioni switch implementando esercizi pratici. Il modulo enfatizza la corretta gestione della memoria, la comprensione di quando usare puntatori vs riferimenti e l'evitare memory leak nei programmi C++.

About This Project

CPP Module 01 focuses on memory management in C++, introducing new and delete operators, references, pointers to members, and the differences between stack and heap allocation. This module deepens understanding of how C++ handles memory compared to C's malloc/free.

Students learn about reference types, file streams, and switch statements while implementing practical exercises. The module emphasizes proper memory management, understanding when to use pointers vs references, and avoiding memory leaks in C++ programs.

Competenze Acquisite

  • Allocazione dinamica della memoria (new/delete)
  • Riferimenti vs puntatori in C++
  • Puntatori a membri (funzioni e attributi)
  • Allocazione di memoria su stack vs heap
  • Stream per file (ifstream, ofstream)
  • Prevenzione dei memory leak in C++
  • Istruzioni switch e flusso di controllo
  • Basi di RAII (Resource Acquisition Is Initialization)

Skills Acquired

  • Dynamic memory allocation (new/delete)
  • References vs pointers in C++
  • Pointers to members (functions and attributes)
  • Stack vs heap memory allocation
  • File streams (ifstream, ofstream)
  • Memory leak prevention in C++
  • Switch statements and control flow
  • RAII (Resource Acquisition Is Initialization) basics

Visualizza il PDF del progetto

View project subject PDF

Apri PDF Open PDF Vedi su GitHub View on GitHub