You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A personal C++ learning repository built from the ground up. Every program written, compiled, and pushed daily. Real code, real progress.
About
This repo documents my C++ learning journey, one concept at a time. Each program targets a single topic so it stays focused and easy to revisit. The goal is a solid programming foundation that supports deeper work in exploit development, scripting, and security tooling.
Program Index
Chapter 1 - Basics and Arithmetic
#
Program
Concept
01
Sum of Two Numbers
Variables, Input/Output, Arithmetic Operators
02
Savings Calculator
Float/Double types, User Input, Basic Math
Chapter 2 - Conditional Logic
#
Program
Concept
03
Find MAX Number
If-Else, Comparison Operators
06
Check Positive and Negative
If-Else Statements
07
Positive / Negative / Zero
If-Else-If Ladder
08
Positive / Negative / Zero
Nested If Statements
Chapter 3 - For Loops
#
Program
Concept
04
Find Even and Odd Numbers
Nested For Loop, Modulo Operator
05
Simple For Loop
Basic For Loop Syntax
09
Print 1 to 5
For Loop Iteration
10
Display Text 5 Times
Loop Repetition
11
Sum of N Natural Numbers
Accumulator Pattern
12
Range-Based For Loop
Modern C++11 Range Loop
13
Sum of N Natural Numbers v2
Loop Practice
14
Enter 5 Characters and Check
For Loop + Conditionals Combined
15
Multiplication Table (0 to 5)
Nested Loops
extra
Even Numbers 10 to 0
Reverse For Loop
Chapter 4 - While Loops
#
Program
Concept
16
Print 1 to 5
While Loop Basics
extra
Sum of Positive Numbers
While + Accumulator
Chapter 5 - Do-While Loops
#
Program
Concept
17
Execute by Choice
Do-While with User Control
18
Display 1 to 5
Basic Do-While
19
Print 1 to 5 v2
Loop Variation Practice
20
Counting 1 to 10
Do-While Counting
21
Sum Until User Enters 0
Sentinel-Controlled Loop
22
Input Validation Loop
Do-While for Valid Input
23
Calculate Sum of User Input
Running Total Pattern
24
Password Validation
Security Logic with Do-While
Core Concepts Covered
Variables and Data Types Arithmetic and Logical Operators
Input / Output (cin, cout) Type Conversion
If / Else / Else-If Nested Conditionals
For Loops While Loops
Do-While Loops Nested Loops
Range-Based For (C++11) Sentinel and Accumulator Patterns
Password Validation Logic Even/Odd, MAX, Sum Problems
How to Compile and Run
# Linux / WSL / macOS
g++ -std=c++17 -o output "01.Sum of Two numbers.c++.cpp"
./output
# Windows (MinGW)
g++ -o output.exe "01.Sum of Two numbers.c++.cpp"
output.exe
The .exe files included are pre-compiled Windows binaries. On Linux, compile from the .cpp source.
Repository Stats
Metric
Value
Total Programs
24+
Language
C++ (100%)
Executables Included
Yes (.exe alongside each .cpp)
Purpose
Programming Foundation for Security Engineering
Connect
Star this repo if it helped you.
About
I am working on C++ so support me and I will share daily basis repositories on this platform.