Tag: C++
All the articles with the tag "C++".
-
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.
-
The this Pointer in C++: What It Is and When to Use It
Learn what the this pointer means in C++, why every member function has one, and when you actually need it — shadowed parameters and method chaining explained.
-
Tic Tac Toe in C++: Build a Complete Two-Player Game
Build a playable tic tac toe game in C++ from scratch. Learn how to draw the board, take player input, check for a winner, and handle draws with clean code.