2025/04 15

cpp_019: Basics of Functions, Methods, Static Methods, and Constructors in C++

This is a beginner-friendly lesson on four key programming ideas: functions, methods, static methods, and constructors. I’ll use the circle and square analogy to make it visual and simple, explain what an object is first, and compare to Python at the end for those familiar with it. No deep OOP yet — just the basics!1. Object (First, for Context)What is an Object?An object is a specific thing in ..

C++ Beginner 2025.04.05

cpp_016: Comparing C-Style Arrays, std::array, and std::vector in C++

1- IntroductionIn previous tutorials, we explored different ways to handle collections in C++. We started with traditional C-style arrays, then introduced the dynamic std::vector, and most recently discussed the modern std::array in cpp_015: STL Array in C++ (https://medium.com/@staytechrich/list/cpp-c-beginner-053ab9a0ecc3).We also examined how these types are passed to functions: C-style array..

C++ Beginner 2025.04.05