Your Journey
0 / 101 Missions
0%
play_arrow
Mission 1 FREE

C++ Introduction – Your First Program

<p> Write a C++ program that prints the following message: </p> <pre> Hello C++ </pre> <p> This challenge introduces you to the basic structure of a C++ program and how to display output on the screen. </p>

lock
Mission 2 FREE

C++ Syntax – Understanding the Basics

<p> Write a C++ program that prints the message: </p> <pre> C++ Syntax Works! </pre> <p> This challenge will help you understand the basic structure and syntax of a C++ program. </p>

lock
Mission 3 FREE

C++ Output – Displaying Text on the Screen

<p> Write a C++ program that prints the following message: </p> <pre> Learning C++ Output! </pre> <p> This challenge will help you practice displaying text on the console using C++. </p>

lock
Mission 4 FREE

C++ New Lines – Printing Text on Multiple Lines

<p> Write a C++ program that prints the following messages on separate lines: </p> <pre> Hello C++ Welcome to Programming </pre> <p> This challenge will help you practice adding new lines in your C++ output. </p>

lock
Mission 5 FREE

C++ Comments – Writing Notes in Your Code

<p> Add comments to the following C++ program to explain each line of code. Comments do not affect the program’s output. </p> <pre> #include &lt;iostream&gt; using namespace std; int main() { cout &lt;&lt; "Hello C++"; return 0; } </pre>

lock
Mission 6 FREE

C++ Variables – Storing Data in Your Program

<p> Write a C++ program that creates a variable to store your age and prints it. </p> <pre> Expected Output Example: My age is 21 </pre> <p> This challenge will help you understand how to declare and use variables in C++. </p>

lock
Mission 7 FREE

C++ Declare Many Variables – Multiple Variables in One Line

<p> Write a C++ program that declares three integer variables in a single line and prints their sum. </p> <pre> Expected Output Example: The sum is 15 </pre> <p> This challenge will help you practice declaring multiple variables efficiently. </p>

lock
Mission 8 FREE

C++ Constants – Fixed Values in Your Program

<p> Write a C++ program that declares a constant to store the value of pi (3.14) and prints it. </p> <pre> Expected Output: The value of pi is 3.14 </pre> <p> This challenge will help you understand how to use constants in C++ programs. </p>

lock
Mission 9 FREE

C++ User Input – Reading Data from the User

<p> Write a C++ program that asks the user to enter their name and age, then prints a message using that information. </p> <pre> Expected Output Example: Enter your name: Akram Enter your age: 21 Hello Akram! You are 21 years old. </pre> <p> This challenge will help you practice reading input from the user using C++. </p>

lock
Mission 10 FREE

C++ Basic Data Types – Understanding Variables

<p> Write a C++ program that declares a variable of each basic type and prints their values. </p> <pre> Expected Output Example: Integer: 10 Float: 3.14 Character: A Boolean: 1 </pre> <p> This challenge will help you understand the basic data types used in C++. </p>

workspace_premium
Mission 11 PREMIUM

C++ Numbers – Working with Numeric Values

<p> Write a C++ program that declares two numbers, adds them, and prints the result. </p> <pre> Expected Output Example: The sum of 5 and 10 is 15 </pre> <p> This challenge will help you practice using numeric variables and performing basic arithmetic in C++. </p>

workspace_premium
Mission 12 PREMIUM

C++ Booleans – True or False Values

<p> Write a C++ program that declares a Boolean variable, assigns it a value, and prints it. </p> <pre> Expected Output Example: The statement is true </pre> <p> This challenge will help you understand how to use Boolean values in C++ programs. </p>

workspace_premium
Mission 13 PREMIUM

C++ Characters

char grade = 'A'; cout << grade;

lock
Mission 14 FREE

C++ Strings

string s = "Hi"; cout << s;

lock
Mission 15 FREE

C++ Operators

Print 10 % 3

lock
Mission 16 FREE

Assignment Ops

int x = 10; x += 5; cout << x;

lock
Mission 17 FREE

Comparison Ops

cout << (5 == 5);

lock
Mission 18 FREE

Logical Ops

cout << (true && false);

lock
Mission 19 FREE

String Length

Log length of "Hello"

lock
Mission 20 FREE

Access Strings

Log first char of "Hello"

lock
Mission 21 FREE

Change String Char

Change "Hello" to "Jello"

lock
Mission 22 FREE

Math Max/Min

Log max(5, 10)

lock
Mission 23 FREE

Math Sqrt

Log sqrt(64)

lock
Mission 24 FREE

Math Round

Log round(2.6)

lock
Mission 25 FREE

C++ If ... Else

if 20 > 18 print 'Yes'

lock
Mission 26 FREE

C++ Else

If 10>20 else print 'No'

lock
Mission 27 FREE

C++ Else If

int x=10; if(x<5){} else if(x==10){cout << "OK";}

lock
Mission 28 FREE

Short Hand If

int t=20; string r=(t<18)?"A":"B"; cout << r;

lock
Mission 29 FREE

Switch Statement

Switch case 1 print 'One'

lock
Mission 30 FREE

While Loop

While i<3

lock
Mission 31 FREE

Do/While Loop

Do while 1<0

lock
Mission 32 FREE

For Loop

For i=0 to 2

lock
Mission 33 FREE

Break and Continue

Break if i==2

lock
Mission 34 FREE

Continue if i==2

Skip 2 in 0-3

lock
Mission 35 FREE

Arrays Intro

int a[]={1, 2}; cout << a[0];

lock
Mission 36 FREE

Change Array Element

Change {1} to {5}

lock
Mission 37 FREE

Loops and Arrays

Print {1, 2}

lock
Mission 38 FREE

Omit Array Size

int a[]={1, 2}; (Theory)

lock
Mission 39 FREE

Get Array Size

theory on sizeof.

lock
Mission 40 FREE

Multi-Dimensional

int a[1][1]={{1}}; print a[0][0]

lock
Mission 41 FREE

Structures

struct {int x;} s; s.x=5; print

lock
Mission 42 FREE

Named Structures

MyStruct s; s.x=10;

lock
Mission 43 FREE

References

string food="Pizza"; string &meal=food; print meal

lock
Mission 44 FREE

Memory Address

theory on &x.

lock
Mission 45 FREE

Pointers Intro

string* p = &food;

lock
Mission 46 FREE

Dereferencing Pointers

Log *p

lock
Mission 47 FREE

Modify Pointer Value

*p = "New";

lock
Mission 48 FREE

Functions

Define f() and call

lock
Mission 49 FREE

Function Parameters

f(name) prints 'Hi ' + name

lock
Mission 50 FREE

Default Params

f() logs default

lock
Mission 51 FREE

Multiple Params

sum(1, 2)

lock
Mission 52 FREE

Return Values

Return 8

lock
Mission 53 FREE

Pass By Reference

void f(int &x){ x=10; }

lock
Mission 54 FREE

Pass Arrays to Func

Theory on array params.

lock
Mission 55 FREE

Function Overloading

double f(double), int f(int).

lock
Mission 56 FREE

Recursion

theory on recursion.

lock
Mission 57 FREE

Classes and Objects

Create Object o from Class C

lock
Mission 58 FREE

Class Methods

inside: void f(){...}

lock
Mission 59 FREE

Constructors

C(){ x=5; }

lock
Mission 60 FREE

Constructor Params

new C(10)

lock
Mission 61 FREE

Access Modifiers

theory on modifiers.

lock
Mission 62 FREE

Encapsulation

get/set x

lock
Mission 63 FREE

Inheritance

class S : public P

lock
Mission 64 FREE

Multi-Level Inheritance

theory on chain.

lock
Mission 65 FREE

Multiple Inheritance

theory on multi.

lock
Mission 66 FREE

Inheritance Access

theory on protected.

lock
Mission 67 FREE

Polymorphism

theory on poly.

lock
Mission 68 FREE

Files: Create/Write

theory on fstream.

lock
Mission 69 FREE

Files: Read

theory on reading.

lock
Mission 70 FREE

Exceptions (Try/Catch)

Try throw 505

lock
Mission 71 FREE

C++ Vectors

vector v={1, 2}; cout << v[0];

lock
Mission 72 FREE

Vector Push Back

push 5 to {1}

lock
Mission 73 FREE

Vector Size

size of {1, 2}

lock
Mission 74 FREE

STL Sort

sort {2, 1}

lock
Mission 75 FREE

Map STL

m["a"]=1; print

lock
Mission 76 FREE

Set STL

s.insert(1); s.insert(1); size

lock
Mission 77 FREE

Stack STL

s.push(1); s.top();

lock
Mission 78 FREE

Queue STL

q.push(1); q.front();

lock
Mission 79 FREE

Pairs STL

pair<int, int> p={1, 2};

lock
Mission 80 FREE

Auto Keyword

auto x = 5; print x

lock
Mission 81 FREE

Iterators

theory on iterators.

lock
Mission 82 FREE

Lambdas

[](int x){ return x+1; }

lock
Mission 83 FREE

Templates Intro

template <typename T> T f(T x)

lock
Mission 84 FREE

Class Templates

theory on class template.

lock
Mission 85 FREE

Smart Pointers

theory on smart pointers.

lock
Mission 86 FREE

Enumeration

print MID

lock
Mission 87 FREE

Typedef / Using

using byte = unsigned char;

lock
Mission 88 FREE

Namespaces

namespace my { int x=5; }

lock
Mission 89 FREE

Bitwise Operators

5 & 1

lock
Mission 90 FREE

Static Members

static int x;

lock
Mission 91 FREE

Friend Functions

friend void f();

lock
Mission 92 FREE

Virtual Functions

virtual void f();

lock
Mission 93 FREE

Pure Virtual

virtual void f() = 0;

lock
Mission 94 FREE

Dynamic Memory

int* p = new int; delete p;

lock
Mission 95 FREE

Inline Functions

inline int f(){ return 1; }

lock
Mission 96 FREE

C-Strings vs Strings

theory comparison.

lock
Mission 97 FREE

String Comparison

Log result

lock
Mission 98 FREE

String Concats

Log AB

lock
Mission 99 FREE

Math Abs

Print 5

lock
Mission 100 FREE

Math Floor/Ceil

print 1 2

lock
Mission 101 FREE

Boolean Logic

Log 1

emoji_events

Path Completion

Complete all missions to earn your certificate of mastery.