Tag: C++
All the articles with the tag "C++".
-
std::list in C++: A Beginner's Guide to Linked Lists in the STL
Learn how std::list works in C++, how it differs from vector, and when a doubly linked list is actually the right choice. With full working code examples.
-
Object Slicing in C++: Why Your Derived Class Loses Its Data
Learn what object slicing is in C++, why assigning a derived object to a base variable silently drops data, and the three reliable ways to prevent it.
-
How to Remove Duplicates From a Vector in C++ (3 Working Methods)
Learn three ways to remove duplicate elements from a vector in C++: sort with unique and erase, a set, and an unordered_set that preserves original order.
-
C++ Temperature Conversion Program: Celsius, Fahrenheit and Kelvin
Build a C++ temperature converter step by step. Covers the Celsius to Fahrenheit formula, integer division traps, decimal formatting and a full menu program.