Skip to content

A curated collection of C++ programs written in Turbo C++ with clear explanations, sample outputs, and usage instructions. Ideal for beginners and university students learning the fundamentals of C++ programming.

License

Notifications You must be signed in to change notification settings

harshladha/CPP-Programs-Code-Bank

Repository files navigation

πŸ’» C++ Programs Code Bank

A comprehensive collection of C++ programs covering fundamentals, data structures, algorithms, and small projects. This repository is intended as a learning reference and practice resource for beginners and intermediate programmers.


πŸ“‚ Repository Contents

This code bank includes programs related to:

βœ… Basic Input/Output
βœ… Arithmetic Operations
βœ… Conditional Statements
βœ… Loops and Recursion
βœ… Arrays and Matrices
βœ… Pointers
βœ… Strings Manipulation
βœ… Object-Oriented Programming
βœ… File Handling
βœ… Data Structures (Linked List, Stack, Queue)
βœ… Sorting and Searching Algorithms
βœ… Mini Projects


πŸ›£οΈ Roadmap to Learn C++ (Based on This Repository)

Follow this structured path to learn C++ effectively by practicing the examples included here:


1️⃣ Basic Input/Output and Operators

πŸ“„ Files to Study:

  • Addition.cpp
  • Calculator.cpp
  • SimpleInterest.cpp
  • AreaOfCircle.cpp

πŸ”‘ Concepts:

  • cin and cout
  • Arithmetic operators
  • Basic syntax

2️⃣ Conditional Statements

πŸ“„ Files to Study:

  • LargestNumber.cpp
  • EvenOdd.cpp
  • SwitchCalculator.cpp

πŸ”‘ Concepts:

  • if, if-else, nested if
  • switch statements

3️⃣ Loops and Patterns

πŸ“„ Files to Study:

  • FactorialUsingForLoop.cpp
  • FibonacciSeries.cpp
  • MultiplicationTable.cpp
  • StarPattern.cpp

πŸ”‘ Concepts:

  • for, while, do-while loops
  • Nested loops

4️⃣ Functions and Recursion

πŸ“„ Files to Study:

  • FactorialUsingRecursion.cpp
  • FibonacciUsingRecursion.cpp
  • PrimeFunction.cpp

πŸ”‘ Concepts:

  • Functions
  • Recursion

5️⃣ Arrays and Matrices

πŸ“„ Files to Study:

  • ArraySum.cpp
  • MatrixAddition.cpp
  • MatrixMultiplication.cpp

πŸ”‘ Concepts:

  • 1D and 2D arrays
  • Traversal and manipulation

6️⃣ Pointers

πŸ“„ Files to Study:

  • PointerExample.cpp
  • PointerArithmetic.cpp

πŸ”‘ Concepts:

  • Pointer basics
  • Pointer arithmetic
  • Arrays and pointers

7️⃣ Strings

πŸ“„ Files to Study:

  • PalindromeString.cpp
  • StringReverse.cpp

πŸ”‘ Concepts:

  • Character arrays
  • String manipulation

8️⃣ Object-Oriented Programming

πŸ“„ Files to Study:

  • ClassExample.cpp
  • ConstructorDemo.cpp
  • BankManagementSystem.cpp

πŸ”‘ Concepts:

  • Classes and objects
  • Constructors/destructors
  • Encapsulation

9️⃣ File Handling

πŸ“„ Files to Study:

  • StudentRecordFile.cpp
  • MarksheetFile.cpp

πŸ”‘ Concepts:

  • File streams (ifstream, ofstream)
  • Reading and writing data

πŸ”Ÿ Data Structures

πŸ“„ Files to Study:

  • StackImplementation.cpp
  • QueueImplementation.cpp
  • LinkedList.cpp

πŸ”‘ Concepts:

  • Manual implementation of stacks, queues, linked lists

1️⃣1️⃣ Searching and Sorting

πŸ“„ Files to Study:

  • BubbleSort.cpp
  • LinearSearch.cpp
  • BinarySearch.cpp

πŸ”‘ Concepts:

  • Sorting algorithms
  • Searching algorithms

1️⃣2️⃣ Mini Projects

πŸ“„ Files to Study:

  • BankManagementSystem.cpp
  • StudentReportCard.cpp

πŸ”‘ Concepts:

  • Integrating multiple concepts in a single application

Releases

No releases published

Packages

No packages published

Languages