Posts
All the articles I've posted.
-
C++ Sort Vector of Structs: By Field with std::sort
Learn how to sort a vector of structs in C++ using std::sort with a lambda comparator. Sort by any field, ascending or descending, and by multiple keys.
-
C++ Split String: How to Split a String by Delimiter (3 Ways)
Learn how to split a string in C++ by space, by a character, or by a substring. Three clear methods using stringstream, getline, and find, with examples.
-
C++ Check if String Contains Substring (find and contains)
Learn how to check if a string contains a substring in C++ using find(), the C++23 contains() method, and a case-insensitive approach, with clear examples.
-
C++ endl vs \n: What's the Difference and Which to Use
Learn the real difference between std::endl and \n in C++. Understand stream flushing, why endl can be slower, and which one to use in your programs.