Aicloud E-Learning

Guided Notes

Introduction to C++

What C++ adds on top of C.

C++ started as 'C with classes' — it keeps C's low-level control but adds object-oriented features (classes, inheritance) and a large standard library of reusable data structures.

`std::cout << "Hello" << std::endl;` is C++'s idiomatic way to print — the `<<` operator chains values into the output stream instead of C's format-string style.

C++ still requires manual memory management by default (like C), but adds tools (constructors, destructors, and later smart pointers) that make it far easier to manage safely than raw C.