Inheritance in C++ with Examples
In C++, one of the most important parts of object-oriented programming is inheritance. It allows us to make a new class from an existing class. This is called a “derived …
C++ is the systems-and-performance language that teaches you what the computer is really doing, manual memory management, references, templates, and the standard library that thousands of game engines and database engines depend on. It’s a core requirement in most Philippine BSIT and BSCS curricula and the foundation language for competitive programming and data structures subjects. This hub collects free C++ tutorials from “hello world” through pointers, OOP, the Standard Template Library, file I/O, and small game and console capstones.
What you’ll learn in the C++ tutorial series
Core syntax: variables, data types, operators, if/else, for, while, switch
Pointers and references: address-of, dereference, nullptr, reference parameters
Object-Oriented Programming: classes, constructors, destructors, inheritance, virtual functions
Standard Template Library: vector, map, set, list, queue, stack, algorithms
Memory management: new/delete, smart pointers (unique_ptr, shared_ptr, weak_ptr)
File I/O: ifstream, ofstream, binary files, error handling
Templates and generics: function templates, class templates, type traits
Modern C++: auto, range-based for, lambdas, move semantics, structured bindings
C++20 features: concepts, ranges, modules, coroutines
Why C++ for BSIT capstones
C++ is preferred for capstones that need real-time performance or system-level access: 2D games using SFML or SDL, embedded firmware on Arduino or Raspberry Pi, console-based data structure demonstrations, file compression utilities, and small interpreters or parsers. C++ is also the standard language for data structures and algorithms classes, so a C++ capstone connects directly to the rest of your major subjects. Panels appreciate the discipline C++ teaches: every variable has a type, every allocation must be freed, every method signature is explicit.
Recommended C++ development setup
Code::Blocks with MinGW-w64 (Windows), bundled compiler + IDE in one installer
Visual Studio 2022 Community (Windows), heavier but powerful MSVC toolchain
VS Code + g++ or clang++ (Linux, macOS), lightweight with the C/C++ extension
CLion (free for students with a .edu email), full IDE with CMake support
CMake for cross-platform build scripts (works with all 4 IDEs above)
Git for version control, GitHub or GitLab for backup
Related C++ resources
C++ Projects, downloadable C++ capstones with source code
C Programming Tutorial, the lower-level cousin of C++
C Projects, console-based C capstones
Database Design, ER diagrams for capstone Chapter 3
UML Diagrams, class diagrams for OOP-heavy C++ projects
Scroll down to browse the full C++ tutorial catalog ↓
In C++, one of the most important parts of object-oriented programming is inheritance. It allows us to make a new class from an existing class. This is called a “derived …
In this course, we will learn about C++ class and object structures and how to use them using examples. This programming paradigm is known as object-oriented programming. But before we …
C++ Signal Handling is the interrupts in a process causing the operating system to end a program suddenly. These interrupts are applied by pressing Ctrl+C on UNIX, LINUX, Mac OS …
Sorting algorithms are used a lot in computer science. They help put things in the right order and solve many problems that come up when writing code. Sorting algorithms make …
By discussing this tutorial, we will know how to remove comments in C++ and how to use them with the help of examples. Why is removing comments important in C++ …
In this tutorial, we will learn what C++ comments are, why we use them, and how to use them with the help of examples given in this article. Comments in …
When we start learning a programming language, the C++ data types is the most important thing we need to know to start coding in that language. The data type is …
C++ String Format – C++ has had multiple attempts to bring text formatting to the language throughout its 40 years of history. The first attempt was the printf() family of …
Storage Classes in C++ are used to explain what a variable or function can do. These features are mostly the scope, visibility, and lifetime, which tell us how long a …
In C++, Data structures are ways to organize, store, and change information. Data structures are an important part of both computer science and software engineering. They can be coded in …
This chapter will talk about the most basic and common I/O operations that C++ programming needs. The C++ standard libraries offer a wide range of C++ input/output stream options, which we will explore …
In this tutorial, we will discuss the date and time manipulation in C++. We will learn about the date and time formats in C++ as we go over them. Since …
Most programming languages support references, but C and C++ also support pointers. C++ is interesting because it supports both pointers and references. A pointer in C++ is a variable that stores the memory address and size on …