| Title | Open | |||
|---|---|---|---|---|
| 25 | Set and Get BalanceCreate a class Wallet with one private double field named balance. | easy | Not started | Solve |
| 26 | Triple Constructor - BookInfoCreate a class BookInfo with private fields title, author (strings), and year (int). | easy | Not started | Solve |
| 27 | Point3D ConstructorCreate a class Point3D with private int fields x, y, and z. | easy | Not started | Solve |
| 28 | Course Class FormattingCreate a class Course with private fields name (string), code (string), and credits (int). | easy | Not started | Solve |
| 29 | Employee ClassCreate a class Employee with private fields name (string), role (string), and salary (double). | easy | Not started | Solve |
| 30 | Recipe ClassCreate a class Recipe with private fields name (string), servings (int), and difficulty (string). | easy | Not started | Solve |
| 31 | Counter IncrementCreate a class Counter with a private int count. | easy | Not started | Solve |
| 32 | Use this PointerYou are building a Box class. | easy | Not started | Solve |
| 33 | Const Area FunctionCreate a class Rectangle with private int length and width. | easy | Not started | Solve |
| 34 | Default and Parameterized ConstructorCreate a class Car with a private int speed. | easy | Not started | Solve |
| 35 | Simple DestructorCreate a class Logger with a constructor that prints "Created" and a destructor that prints "Destroyed". | easy | Not started | Solve |
| 36 | Copy Constructor - PointCreate a class Point with private int x and y. | easy | Not started | Solve |
| 37 | Light MutatorsCreate a class Light with a private bool isOn. | easy | Not started | Solve |
| 38 | Static Member FunctionCreate a class MathHelper with a static function add(int a, int b) that returns the sum. | easy | Not started | Solve |
| 39 | Object on HeapCreate a class Car with a private int speed and a default constructor that sets speed to 0. | easy | Not started | Solve |
| 40 | Simple Array MemberCreate a class Playlist with a private array of 5 strings named songs. | easy | Not started | Solve |
| 41 | Pass by Const ReferenceCreate a class Student with private fields name (string) and grade (int). | easy | Not started | Solve |
| 42 | Calculator MethodsCreate a class Calculator with methods add, subtract, and multiply that each take two ints and return an int result. | easy | Not started | Solve |
| 43 | Initialization ListCreate a class Person with private fields name (string) and age (int). | easy | Not started | Solve |
| 44 | Display ProductCreate a class Product with private fields name (string) and price (double). | easy | Not started | Solve |
| 59 | Money + Money (operator+)You are building a simple Money class for prices in a store. | easy | Not started | Solve |
| 60 | Temperature Equality (operator==)You are comparing temperatures for a thermostat. | easy | Not started | Solve |
| 61 | TimeOfDay Comparison (operator<)You are sorting times in a daily schedule. | easy | Not started | Solve |
| 62 | Vector2D Add-Assign (operator+=)You are moving a character on a 2D grid. | easy | Not started | Solve |
| 63 | Fraction Multiply (operator*)You are working with recipe ratios. | easy | Not started | Solve |
| 64 | Product Compare by SKU (operator==)You are tracking products in a warehouse. | easy | Not started | Solve |
| 65 | Rectangle Combine Dimensions (operator+)You are combining two rectangular boards end-to-end. | easy | Not started | Solve |
| 66 | Score Prefix Increment (operator++)You are tracking points in a game. | easy | Not started | Solve |
| 67 | Distance Subtract (operator-)You are tracking distance along a running route. | easy | Not started | Solve |
| 68 | Complex Negation (unary operator-)You are working with 2D rotations using complex numbers. | easy | Not started | Solve |
| 69 | WeekSchedule Indexing (operator[])You are storing a simple weekly schedule. | easy | Not started | Solve |
| 70 | Print a Point (operator<<)You want clean logging for coordinates. | easy | Not started | Solve |
| 71 | Evaluate a Line (operator())You are modeling a straight line y = mx + b. | easy | Not started | Solve |
| 72 | Scale a Duration (operator*)You are scaling workout durations. | easy | Not started | Solve |
| 73 | Calendar Date Inequality (operator!=)You are checking if two calendar dates are different. | easy | Not started | Solve |
| 148 | Safe List AccessCreate a class SafeList that wraps a vector<int> and prevents out-of-bounds access. | easy | Not started | Solve |
| 149 | Throw in ConstructorCreate a class Rectangle with private double width and double height. | easy | Not started | Solve |
| 176 | Friend Function to Read a Private FieldA friend function is a non-member function that is allowed to access a class's private members. | easy | Not started | Solve |
| 45 | Deep Copy ConstructorCreate a class NumberHolder with a private int value. | medium | Not started | Solve |
| 46 | Rule of ThreeImplement the Rule of Three for a class NumberHolder with int value. | medium | Not started | Solve |
| 47 | Fix Shallow CopyCreate a class BadCopy that owns an int data pointer. | medium | Not started | Solve |
| 48 | Dynamic Array MemberCreate a class ArrayHolder with private int arr and int size. | medium | Not started | Solve |
| 49 | Deep Copy for Dynamic ArrayExtend ArrayHolder so the copy constructor performs a deep copy of the dynamic array. | medium | Not started | Solve |
| 50 | Copy Assignment OperatorImplement operator= for ArrayHolder to deep copy the array. | medium | Not started | Solve |
| 51 | Disable CopyingCreate a class DatabaseConnection and explicitly delete the copy constructor and copy assignment operator. | medium | Not started | Solve |
| 52 | Const ComparisonCreate a class Rectangle with private int length and width. | medium | Not started | Solve |
| 53 | Dynamic 2D ArrayCreate a class Matrix with private int data, int rows, and int cols. | medium | Not started | Solve |
| 54 | Copy Constructor LogsCreate a class Logger with a copy constructor that prints "Copied". | medium | Not started | Solve |
| 74 | Money Comparisons (operator< and operator<=)You want to compare money amounts for sorting and "at most" checks. | medium | Not started | Solve |
| 75 | Fraction Equality by Value (operator==)You are comparing ingredient ratios, and 5/10 should equal 1/2 (both represent the same value). | medium | Not started | Solve |
| 76 | Vector2D Add and Subtract (operator+ and operator-)You are doing basic physics with displacement vectors. | medium | Not started | Solve |
| 77 | TimeDuration I/O (operator>> and operator<<)You are parsing and printing workout durations. | medium | Not started | Solve |
| 78 | Counter Prefix and Postfix ++You are tracking the number of notifications. | medium | Not started | Solve |
| 79 | Playlist Track Access (const and non-const operator[])You are managing a tiny playlist of 3 song titles. | medium | Not started | Solve |
| 80 | Distance Add-Assign and Add (operator+= and operator+)You are tracking total distance across multiple runs. | medium | Not started | Solve |
| 81 | Complex Add and Stream Print (operator+ and operator<<)You want to add complex numbers and print them cleanly. | medium | Not started | Solve |
| 82 | TextLabel Concatenation (operator+ and operator+=)You are building UI labels that have a prefix and main text. | medium | Not started | Solve |
| 83 | Grade Compare (operator> and operator>=)You are comparing student grades across different point totals. | medium | Not started | Solve |
| 84 | Account Balance Add (operator+ for BankAccount)You want to combine balances from two accounts into a new summary account. | medium | Not started | Solve |
| 85 | Temperature Range Shift (operator+ and operator<<)You are adjusting an allowed temperature range by a delta. | medium | Not started | Solve |
| 86 | Book Progress (operator-= and operator>=)You are tracking reading progress using current page and total pages. | medium | Not started | Solve |
| 87 | Wallet Deposit/Withdraw (operator+= and operator-=)You are implementing deposits and withdrawals for a wallet balance. | medium | Not started | Solve |
| 88 | Point2D Equality and Inequality (operator== and operator!=)You are checking if two points are the same location. | medium | Not started | Solve |
| 139 | Derived Class With New MembersYou are given a base class Shape with a protected string color and a constructor. | medium | Not started | Solve |
| 140 | Polymorphism Through Base PointerYou are given a base class Animal with a virtual function speak() that prints "..." and a virtual destructor. | medium | Not started | Solve |
| 141 | Inheriting and Extending a ConstructorYou are given a base class Person with protected members name (string) and age (int), plus a constructor and a virtual display() function. | medium | Not started | Solve |
| 142 | Override With Base Call and Extra LogicYou are given a base class Logger with a virtual function log() that prints a timestamp message. | medium | Not started | Solve |
| 143 | Multi-Level Inheritance With OverridesYou are given a base class Vehicle with a protected int speed and a virtual function describe(). | medium | Not started | Solve |
| 144 | Virtual Function With Return ValueYou are given a base class Employee with protected members name (string) and baseSalary (double), a constructor, and a virtual function calculatePay() that returns baseSalary. | medium | Not started | Solve |
| 152 | BankAccount Withdraw ExceptionCreate a class BankAccount with a private double balance. | medium | Not started | Solve |
| 153 | Custom Exception ClassCreate a custom exception class ValidationError that inherits from std::exception, then use it in a function. | medium | Not started | Solve |
| 177 | Friend Function Comparing Two ObjectsA friend function can read the private members of EVERY object passed to it. | medium | Not started | Solve |
| 178 | Friend Function That Builds a New ObjectCreate a class Box with a private int volume set by its constructor, plus a public int getVolume() const. | medium | Not started | Solve |
| 722 | Build a Book From a Pipe-Delimited RecordComplete the constructor Book(const string& record). | medium | Not started | Solve |