Tag: modern-cpp
All the articles with the tag "modern-cpp".
-
typedef vs using in C++: Type Aliases Explained
typedef vs using in C++ explained for beginners. Learn how to create type aliases, why using is the modern choice, and how alias templates make code cleaner.
-
C++ Measure Execution Time with std::chrono (Beginner Guide)
Learn how to measure execution time in C++ with std::chrono. Time code in milliseconds or microseconds, time a function, and build a simple reusable timer.
-
C++ nullptr vs NULL: What's the Difference (Beginner Guide)
Learn the difference between nullptr and NULL in C++, why nullptr is safer, and how it fixes a real overload bug. Clear beginner examples with working code.
-
C++ Range-Based For Loop: The Modern Way to Loop (Beginner Guide)
Master the C++ range-based for loop. Learn the syntax, when to use auto and references, how it beats index loops, and its limits — with clear beginner examples.