RAII in C++

* Manual resource management is fragile and exception-unsafe.
* RAII makes cleanup automatic and reliable.
* Prefer standard RAII types: `std::unique_ptr`, `std::lock_guard`, `std::fstream`, containers.
* Aim for the **Rule of Zero**: let RAII members define correct destruction and ownership.








