Posts
All the articles I've posted.
-
Stack Using Linked List in C++: Dynamic Node & Pointer Implementation
Learn how to implement a Stack using a singly linked list in C++ from scratch. Understand Node structs, the top pointer, dynamic memory allocation with new and delete, destructor cleanup, visual pointer diagrams, and array vs linked list trade-offs.
-
Stack Using Vector in C++: Step-by-Step Class Implementation
Learn how to implement a Stack using std::vector in C++. Includes visual diagrams, step-by-step explanations of push_back, pop_back, and back, a complete C++ class implementation, and complexity analysis.
-
Stack in C++: Complete Beginner's Guide
A stack in C++ stores elements in LIFO order, so push, pop and top all work on one end. Learn each operation and std::stack with a full example.
-
Namespaces in C++: Scope Resolution, Name Collisions, and Best Practices
Understand namespaces in C++ the easy way. Learn how to prevent name collisions, use the scope resolution operator (::), navigate nested and anonymous namespaces, and why 'using namespace std;' is dangerous in headers.