Posts
All the articles I've posted.
-
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.
-
C++ cin.ignore(): Fix getline Skipping After cin >>
Why getline is skipped after cin >> in C++, and how cin.ignore() clears the leftover newline. Fix the input buffer bug with clear, beginner-friendly examples.
-
GCD and LCM in C++: The Euclidean Algorithm Explained
Find the GCD and LCM of two numbers in C++. Learn the Euclidean algorithm with loops and recursion, the LCM formula, and the built-in std::gcd in C++17.