Tag: tutorial
All the articles with the tag "tutorial".
-
C++ new vs malloc: What's the Difference and Which to Use
C++ new vs malloc explained: new calls constructors and is type-safe, malloc hands you raw memory. Learn the real differences and why new is preferred in C++.
-
C++ priority_queue: A Beginner's Guide with Examples
Learn the C++ priority_queue from scratch: push, pop, and top, plus how to build a min-heap and use custom comparators. Beginner-friendly examples included.
-
The Rule of Three in C++ Explained (with Examples)
The Rule of Three in C++: if your class needs a destructor, copy constructor, or copy assignment, it usually needs all three. Learn why, with clear examples.
-
What Is size_t in C++? The Type for Sizes and Indexing
What is size_t in C++? It's an unsigned integer type for sizes, lengths, and indexes. Learn what it means, why loops use it, and the unsigned pitfalls to avoid.