Blog
Page 734 of my articles, tutorials, and thoughts
Latest Articles
Difference between "struct" and "typedef struct" in C++?
# Understanding the Difference between 'struct' and 'typedef struct' in C++ ๐ค Are you a C++ developer who has ever wondered about the difference between `struct` and `typedef struct`? If so, you're not alone! Many programmers have found themselves ponder
Concatenating two std::vectors
๐๐ฅ **Tech Tidbits: A Guide to Concatenating `std::vectors`** ๐๐ก Ever found yourself in a conundrum of merging two `std::vectors` and wondering how to tackle it? Concatenating two `std::vectors` might sound like a daunting task, but worry not! In this
What is the strict aliasing rule?
๐Lingo Decoder: Understanding the Strict Aliasing Rule in C ๐ค๐ญ Have you ever stumbled upon a coding discussion where people start throwing around terms like "strict aliasing rule" and wondered what on earth they were talking about? ๐ค Don't worry, you'
Why should C++ programmers minimize use of "new"?
# Why should C++ programmers minimize use of 'new'? ๐ป๐๐ฑ So, you stumbled upon this Stack Overflow question about a memory leak with `std::string` when using `std::list<std::string>`. In the comments, someone mentioned that you should "stop using `new`"
How to convert an instance of std::string to lower case
# Converting std::string to Lowercase: A Foolproof Guide โจ๐ Have you ever needed to convert a `std::string` to lowercase but found yourself struggling with the `tolower()` function? ๐ฉ Well, fret no more! In this guide, we will explore a foolproof soluti
How to trim an std::string?
# How to Trim an `std::string`? ๐ก **Are you tired of dealing with pesky whitespace in your `std::string`?** ๐ฉ Whether you're a seasoned programmer or just starting out, trimming a string can be a common task. In this guide, we'll explore the best practi
What are the new features in C++17?
๐ Introducing C++17: Unveiling the Coolest Features! ๐ Hey there, tech fanatics! Get ready to level up your C++ game because C++17 has some awesome new features in store for you. ๐คฉ In this blog post, we'll dive into the latest additions to the language
What are the rules about using an underscore in a C++ identifier?
๐ Hey there, fellow tech enthusiasts! ๐ฉโ๐ป๐จโ๐ป In today's blog post, we're going to address an interesting and commonly asked question in the C++ programming language: what are the rules about using an underscore in a C++ identifier? ๐๐ป ๐ค So, let'
What does T&& (double ampersand) mean in C++11?
# What Does T&& (Double Ampersand) Mean in C++11? ๐ค๐ So, you're diving into the amazing world of C++11 and stumbled upon something that caught your eye - the double ampersand in variable declarations: `T&& var`. ๐ฎ You might be wondering, what on earth






