Beginner Study Notes
1. Introduction to C++
C++ is a general-purpose programming language used for system software,
applications, games, and competitive programming.
Key Features
Developed by Bjarne Stroustrup
Fast and efficient
Supports procedural and object-oriented programming
Sample Program:
#include <iostream>
using namespace std;
int main() {
cout << "Hello, World!" << endl;
return 0;
}
2. Variables and Data Types
, Common Data Types
Data Type Description
int Whole numbers
float Decimal numbers
double Large decimals
char Single character
string Text
Example
int age = 20;
float salary = 4500.50;
char grade = 'A';
string name = "Allen";
3. Constants and Operators
Constants
const int MAX = 100;
Operators
Arithmetic: + - * / %
Comparison: == != > < >= <=