Tag: tutorial
All the articles with the tag "tutorial".
-
What Is size_t in C++? The Type for Sizes and Indexing
What is size_t in C++? It's an unsigned integer type for sizes, lengths, and indexes. Learn what it means, why loops use it, and the unsigned pitfalls to avoid.
-
C++ String Concatenation: 5 Ways to Join Strings
C++ string concatenation made simple: use +, +=, append(), stringstream, or C++20 format to join strings. Learn which method to pick and the char array gotcha.
-
Binary Search in C++: Iterative, Recursive, and std::binary_search
Learn binary search in C++ step by step. Write the iterative and recursive versions, avoid the classic off-by-one bugs, and use std::binary_search correctly.
-
Friend Functions in C++: What They Are and When to Use Them
Learn what friend functions and friend classes do in C++, how they access private members, and when using one is the right call instead of a getter method.