Blog
Page 405 of my articles, tutorials, and thoughts
Latest Articles
Unnamed/anonymous namespaces vs. static functions
# Unnamed/anonymous namespaces vs. static functions: Breaking Down the Mystery šµļøāāļø Have you ever stumbled upon the concept of unnamed (anonymous) namespaces while exploring the world of C++ programming? You might have wondered why or when one should us
Parse (split) a string in C++ using string delimiter (standard C++)
š Title: Easy String Parsing in C++: Splitting with a Custom Delimiter Introduction: š Hey there, tech enthusiasts! In this blog post, we'll dive into a common issue that many programmers face when attempting to split a string in C++. We'll focus on how
GCC -fPIC option
# šÆ GCC -fPIC Option: A Beginner's Guide to Position-Independent Code Have you ever come across the GCC `-fPIC` option and wondered what it does? š¤ Don't worry; you're not alone! In this blog post, we'll break down this commonly confusing piece of jargo
What is the most effective way for float and double comparison?
# Comparing Float and Double Values: The Ultimate Guide š Hey there, tech enthusiasts! š Are you hitting your head against the wall while trying to find the most effective way to compare two `double` or `float` values? š¤ Don't worry, we've got you co
What does int argc, char *argv[] mean?
š„ļøš” Understanding int argc, char *argv[] in C++ š”š„ļø So, you've probably seen this strange line of code in C++ programs before: `int main(int argc, char *argv[])`. It often pops up in many C++ IDEs and compilers, leaving you wondering what it means and
Why is iostream::eof inside a loop condition (i.e. `while (!stream.eof())`) considered wrong?
š **Title: Why Using iostream::eof in a Loop Condition is Considered Wrong?** **Introduction:** Do you often find yourself using `while (!stream.eof())` when reading data from a file using C++? šāļø It's a common practice, but did you know that it is con
What exactly is nullptr?
šš„ Blog Post: Introducing nullptr - C++11's Superior Null Pointer š§ Are you confused by the new C++11 feature called nullptr? š¤ Don't worry, you're not alone! This latest addition to the language can be a bit tricky to grasp, but fear not, we're here
How do I find the length of an array?
# How to Find the Length of an Array? š Are you struggling to figure out the length of an array? Do you find yourself lost in a maze of code, trying to determine whether you've reached the end of the array or not? Don't worry, my friend! In this blog pos
What are Aggregates and PODs and how/why are they special?
# Aggregates and PODs: Unlocking the Secrets Have you ever come across the terms "Aggregates" and "PODs" while diving deep into the world of C++? š¤ Don't worry! In this blog post, we'll demystify these concepts and uncover why they're so special. Get rea
Are the days of passing const std::string & as a parameter over?
š Are the Days of Passing const std::string & as a Parameter Over? š¤ Have you heard the recent talk by Herb Sutter discussing whether the days of passing `const std::string &` as a parameter are over? šļø If not, let me bring you up to speed! šš¼ Dur