Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ Programming Concepts & Implementations

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.


Repository Scope

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

Repository Structure

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

Topics Covered

Basics

Basic C++ language concepts:

  • Variables
  • Data types
  • Constants
  • Operators
  • Type conversion

Input and Output

Basic input and output:

  • std::cin
  • std::cout
  • getline

Conditional Statements

Decision-making in C++:

  • if
  • if-else
  • else-if
  • switch

Loops

Basic repetition structures:

  • for
  • while
  • do-while
  • Nested loops
  • break
  • continue

Arrays

Basic array concepts:

  • Array declaration
  • Array input
  • Array traversal
  • Multidimensional arrays

Strings

Basic string handling:

  • std::string
  • String input
  • String operations
  • String comparison

Functions

Basic function concepts:

  • Function declaration
  • Function definition
  • Parameters
  • Return values
  • Function overloading

References

  • Reference variables
  • Reference parameters
  • Const references

Pointers

Basic pointer concepts:

  • Pointer declaration
  • Address and dereference operators
  • Pointer operations
  • Pointers with arrays

Namespaces

  • Creating namespaces
  • Using namespaces
  • Avoiding naming conflicts

Purpose

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

Approach

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.


Language

C++

The implementations in this repository are written in C++.


Repository Status

This repository is an ongoing collection of basic C++ concepts and practice programs.

New basic concepts and examples may be added as learning progresses.


Scope Boundaries

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.


Note

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.

About

A collection of basic C++ programs for practicing and learning core programming fundamentals through simple implementations.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages