1. Introduction to C++
Features of C++ |
History and evolution of C++ |
Structure of a C++ program |
Writing and compiling a simple C++ program |
2. Basic Syntax and Data Types
Keywords and identifiers |
Variables and constants |
Data types (int, float, char, double, bool) |
Type modifiers (signed, unsigned, short, long) |
Typecasting |
3. Operators in C++
Arithmetic Operators (+, -, *, /, %) |
Relational Operators (==, !=, >, <, >=, <=) |
Logical Operators (&&, ||, !) |
Bitwise Operators (&, |, ^, ~, <<, >>) |
Assignment Operators (=, +=, -=, *=, /=, %=) |
Increment and Decrement Operators (++, --) |
Ternary (?:) and Comma Operators |
4. Control Flow Statements
Conditional Statements: if, if-else, else-if, Nested if-else, switch-case |
Loops: for loop, while loop, do-while loop |
Jump Statements: break, continue, goto (use with caution) |
5. Functions and Scope
Function declaration and definition |
Function overloading |
Default arguments |
Pass by value vs. Pass by reference |
Inline functions |
Recursive functions |
Storage classes (auto, register, static, extern, mutable) |
6. Arrays and Strings
One-dimensional arrays |
Multi-dimensional arrays |
Character arrays (char[] vs string) |
String functions (strlen, strcpy, strcat, strcmp) |
Using the string class (C++ STL) |
|