All CoursesC++ Programming Course

3-Month Comprehensive Course

12-week deep-dive program. Daily 60–90 minute sessions. Fundamentals → OOP → Advanced concepts → Real-world systems.

Month 1: Fundamentals

Week 1: Setup & First Programs

Environment setup, Hello World, cout, cin, comments

week1.cpp
#include <iostream>
using namespace std;

int main() {
    // Your first C++ program
    cout << "Welcome to C++ Programming!" << endl;
    
    string name;
    cout << "What is your name? ";
    cin >> name;
    cout << "Hello, " << name << "! Let's learn C++." << endl;
    
    return 0;
}
Output:
Welcome to C++ Programming!
What is your name? Maria
Hello, Maria! Let's learn C++.

✏️ Exercises

  1. Print your name and age
  2. Take two numbers as input and display their sum
  3. Print a pattern of stars using cout

🚀 Mini Project

Personal Info Card — Take name, age, city as input and display a formatted info card.

Week 2: Variables & Operators

int, float, double, char, string, bool, arithmetic/relational/logical operators

week2.cpp
#include <iostream>
using namespace std;

int main() {
    double price = 49.99;
    int quantity = 3;
    double discount = 0.10; // 10%
    
    double subtotal = price * quantity;
    double discountAmount = subtotal * discount;
    double total = subtotal - discountAmount;
    
    cout << "Subtotal: $" << subtotal << endl;
    cout << "Discount: -$" << discountAmount << endl;
    cout << "Total: $" << total << endl;
    
    bool isExpensive = (total > 100);
    cout << "Expensive order? " << (isExpensive ? "Yes" : "No") << endl;
    
    return 0;
}
Output:
Subtotal: $149.97
Discount: -$14.997
Total: $134.973
Expensive order? Yes

✏️ Exercises

  1. Calculate area of a circle (pi * r * r)
  2. Convert temperature between Celsius and Fahrenheit
  3. Calculate simple interest (P * R * T / 100)

🚀 Mini Project

Shopping Cart Calculator — Enter up to 5 items with price and quantity, calculate total with tax.

Week 3: Conditionals

if, else if, else, switch, nested conditions, ternary operator

week3.cpp
#include <iostream>
using namespace std;

int main() {
    int marks;
    cout << "Enter your marks (0-100): ";
    cin >> marks;
    
    char grade;
    if (marks >= 90) grade = 'A';
    else if (marks >= 80) grade = 'B';
    else if (marks >= 70) grade = 'C';
    else if (marks >= 60) grade = 'D';
    else grade = 'F';
    
    cout << "Grade: " << grade << endl;
    cout << "Status: " << (grade != 'F' ? "PASS" : "FAIL") << endl;
    
    return 0;
}
Output:
Enter your marks (0-100): 85
Grade: B
Status: PASS

✏️ Exercises

  1. Build a menu-driven calculator with switch-case
  2. Check if a year is a leap year
  3. Determine ticket price based on age (child/adult/senior)

🚀 Mini Project

ATM Simulator — Login with PIN, show menu (check balance, deposit, withdraw), validate all inputs.

Week 4: Loops

for, while, do-while, break, continue, nested loops

week4.cpp
#include <iostream>
using namespace std;

int main() {
    // Print a right triangle pattern
    int rows = 5;
    for (int i = 1; i <= rows; i++) {
        for (int j = 1; j <= i; j++) {
            cout << "* ";
        }
        cout << endl;
    }
    
    // Sum until user enters 0
    cout << "\nEnter numbers (0 to stop):" << endl;
    int num, sum = 0;
    do {
        cin >> num;
        sum += num;
    } while (num != 0);
    
    cout << "Total sum: " << sum << endl;
    
    return 0;
}
Output:
* 
* * 
* * * 
* * * * 
* * * * * 

Enter numbers (0 to stop):
10 20 30 0
Total sum: 60

✏️ Exercises

  1. Print multiplication table for 1 to 10
  2. Find all prime numbers between 1 and 100
  3. Print a diamond pattern with nested loops

🚀 Mini Project

Number Guessing Game — Computer picks a random number, user guesses with hints (higher/lower). Track attempts.