A structured collection of C++ basic concepts and implementations developed for practicing the C++ programming language through small, focused programs.
The purpose of this repository is to build a strong foundation in C++ basics through hands-on practice.
The repository focuses on basic C++ concepts, including:
- Input and output
- Variables and data types
- Operators
- Conditional statements
- Loops
- Arrays
- Strings
- Functions
- References
- Pointers
- Namespaces
cpp-programming/
│
├── basics/
│ ├── variables.cpp
│ ├── data_types.cpp
│ ├── constants.cpp
│ ├── operators.cpp
│ └── type_conversion.cpp
│
├── io/
│ ├── cin_cout.cpp
│ └── getline.cpp
│
├── conditionals/
│ ├── if.cpp
│ ├── if_else.cpp
│ ├── else_if.cpp
│ └── switch.cpp
│
├── loops/
│ ├── for.cpp
│ ├── while.cpp
│ ├── do_while.cpp
│ ├── nested_loops.cpp
│ └── break_continue.cpp
│
├── arrays/
│ ├── array_basics.cpp
│ ├── array_input.cpp
│ ├── array_traversal.cpp
│ └── multidimensional_array.cpp
│
├── strings/
│ ├── string_basics.cpp
│ ├── string_input.cpp
│ ├── string_operations.cpp
│ └── string_comparison.cpp
│
├── functions/
│ ├── function_basics.cpp
│ ├── function_parameters.cpp
│ ├── return_values.cpp
│ └── function_overloading.cpp
│
├── references/
│ ├── reference_basics.cpp
│ └── const_reference.cpp
│
├── pointers/
│ ├── pointer_basics.cpp
│ ├── pointer_operations.cpp
│ └── pointer_with_arrays.cpp
│
└── namespaces/
└── namespace_basics.cpp
Basic C++ language concepts:
- Variables
- Data types
- Constants
- Operators
- Type conversion
Basic input and output:
std::cinstd::coutgetline
Decision-making in C++:
ifif-elseelse-ifswitch
Basic repetition structures:
forwhiledo-while- Nested loops
breakcontinue
Basic array concepts:
- Array declaration
- Array input
- Array traversal
- Multidimensional arrays
Basic string handling:
std::string- String input
- String operations
- String comparison
Basic function concepts:
- Function declaration
- Function definition
- Parameters
- Return values
- Function overloading
- Reference variables
- Reference parameters
- Const references
Basic pointer concepts:
- Pointer declaration
- Address and dereference operators
- Pointer operations
- Pointers with arrays
- Creating namespaces
- Using namespaces
- Avoiding naming conflicts
The primary purpose of this repository is to build a strong practical foundation in C++ programming through direct implementation.
Each file represents a small concept or example that can be studied, compiled, and tested independently.
The repository is intended to provide a simple reference for:
- Learning C++ basics
- Practicing programming concepts
- Understanding C++ syntax
- Writing small programs
- Building a strong foundation before moving to advanced topics
The implementations are intentionally simple and focused on understanding basic C++ concepts.
The general learning process is:
Understand the concept
↓
Write a small program
↓
Compile and test
↓
Practice with variations
↓
Move to the next concept
The repository is intended to represent hands-on C++ practice rather than a collection of copied code.
C++
The implementations in this repository are written in C++.
This repository is an ongoing collection of basic C++ concepts and practice programs.
New basic concepts and examples may be added as learning progresses.
This repository intentionally does not focus on:
- Advanced C++ programming
- Advanced Standard Library features
- Templates
- Smart pointers
- Move semantics
- Multithreading
- Concurrency
- C++20/23 advanced features
- Competitive programming
- Advanced DSA
- Object-oriented programming
The goal of this repository is to keep the collection focused on C++ programming fundamentals.
The code in this repository represents hands-on learning, experimentation, and practice with basic C++.
Individual implementations prioritize clarity and understanding of fundamental concepts over advanced optimization or production-level architecture.
The repository is intended as a continuously growing personal reference for learning and practicing C++ fundamentals.