Tag: tutorial
All the articles with the tag "tutorial".
-
Quick Sort in C++: How It Works, With Full Code and Complexity
Learn quick sort in C++ with a complete working program. Understand the pivot, the partition step, recursion, and why quicksort usually beats merge sort.
-
Rock Paper Scissors in C++: Build the Game Step by Step
Build a rock paper scissors game in C++ from scratch. Learn enums, random computer moves, input validation, and a scoring loop in one beginner project.
-
How to Round to 2 Decimal Places in C++ (Display vs Value)
Round numbers to 2 decimal places in C++ using setprecision or std::round. Learn which one changes the value, which only changes output, and the float trap.
-
How to Make a C++ Program Wait: sleep_for and Delays Explained
Pause a C++ program with std::this_thread::sleep_for. Learn the portable C++11 way, why Sleep and usleep are not portable, and why busy-wait loops are bad.