Posts
All the articles I've posted.
-
Function Pointers in C++: A Beginner's Guide with Examples
Learn how function pointers work in C++. Store functions in variables, pass them as arguments, build a callback, and see why std::function is often simpler.
-
Linked Lists in C++: Build One From Scratch (Beginner's Guide)
Learn how linked lists work in C++. Build a singly linked list from scratch with nodes and pointers, insert and delete elements, and know when to use one.
-
C++ Preprocessor Directives: #include, #define, and #ifdef Explained
Learn what C++ preprocessor directives do before compilation. Understand #include, #define macros, include guards with #ifndef, and why const beats #define.
-
Selection Sort in C++: How It Works, With Code and Complexity
Learn selection sort in C++ with a full working program. See how the algorithm picks the smallest element each pass, plus its time complexity and trade-offs.