C++ Basics

Progress:

Introduction to C++

C++ is a powerful general-purpose programming language created by Bjarne Stroustrup as an extension of the C programming language.

It's widely used for developing operating systems, browsers, games, and performance-critical applications.

Your First C++ Program

#include <iostream>

using namespace std;

int main() {
    cout << "Hello, World!" << endl;
    return 0;
}

Variables and Data Types

C++ has several built-in data types for storing different kinds of values:

// Integer types
int age = 25;
short smallNumber = 100;
long bigNumber = 1000000;

// Floating point types
float price = 9.99f;
double pi = 3.1415926535;

// Character type
char grade = 'A';

// Boolean type
bool isCppFun = true;