Code, Creativity & Community

Showing posts tagged C++ · View all posts

Editor's pick
Understanding std::cout and the Null Character in C++
std::cout is how most people first print to the console in C++. It's simple to use, but understanding what happens under the operator << matters when output doesn't behave the... Read more...
C++ Header Guards: #pragma once vs #ifndef Explained
Header guards prevent multiple inclusion. The choice between #pragma once and traditional #ifndef guards is less about correctness and more about tradeoffs you can actually reason about. Read more...
std::vector in C++: The Dynamic Array You Actually Use
std::vector is the default container in C++. It's a dynamic array that handles memory for you, grows when needed, and performs well enough for most use cases. Understanding when and... Read more...
C++ Templates: Understanding template
Templates let you write code that works with any type. They're powerful, sometimes misused, and essential to modern C++. Understanding when to reach for them—and when not to—matters as much... Read more...