From simple console output to advanced number formatting — master C++ I/O through progressive challenges. Topics include escape sequences, stream manipulators, type conversion, precision control, and multi-base number systems.
Print text containing apostrophes and single quotes using cout in C++.
Learn to print strings with embedded double quotes using \" escape sequence.
Print the text "\n" without creating an actual newline using escape sequence.
Print the percent (%) symbol using cout in C++.
Print a single backslash (\) using the \\ escape sequence.
Learn to read integer input from user using cin and output it using cout.
Read a character from user using cin and print it using cout.
Declare and initialize two integer variables, then print them space-separated.
Master output formatting using setw, setfill, and alignment manipulators - includes complete guide!
Learn to display positive numbers with a + sign using the showpos manipulator - no conditionals needed!
Print the ASCII value of a character using type casting in C++.
Convert an ASCII value to its corresponding character using type casting.
Master floating-point formatting with fixed and setprecision - includes complete guide on decimal control!
Combine setw and setprecision for perfectly formatted floats - with visual examples and reference to Question #9!
Learn that setprecision can accept variables! Control decimal places dynamically based on user input.
Master ALL rounding techniques in C++ - complete guide to round, floor, ceil, trunc with visual examples!
Learn exponential notation with the scientific manipulator - perfect for astronomy, physics, and engineering!
Complete guide to number bases - hex, octal, decimal with uppercase, prefixes, padding, and more!
Learn why mixing C and C++ is smart! Use printf's %g to elegantly remove trailing zeros - real-world pragmatism!
Read two integers and display their sum with formatted output - perfect practice for multiple input handling!
Master the abs() function from cmath library - your first step into mathematical functions in C++!
Learn to multiply large decimals and format output with fixed precision - mastering iomanip library!
Master static_cast vs C-style casting! Learn modern C++ type conversion - a must-know for professional code!
Learn the classic swap algorithm with temporary variable - a fundamental pattern used everywhere!
Master XOR bitwise magic! Learn ALL swapping techniques without temp variable - a true programmer's skill!
Mind-bending! Solve conditional problems using pure math - no if-else allowed. Learn branch-free programming!
Master time conversion! Learn the power of division & modulo to decompose seconds into HH:MM:SS format!
Learn abs() function! Quick intro to absolute values - distance from zero concept made simple! 📚 See #21
Same pattern as #27! Decompose total days into years, weeks, days - the division-modulo duo returns! 🔁
🎯 ALL 29 CONCEPTS COMBINED! Life & Fitness Dashboard using EVERYTHING you've learned. The true test of mastery! ⭐