Skip to content

MohammadFahad1/Learning_and_Solving_Problems_Using_Cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learning and Solving Problems Using C++ 🚀

Welcome to my personal repository dedicated to mastering the C++ programming language, understanding core computer science principles, and sharpening my algorithmic problem-solving skills.

This repository acts as a structured archive tracking my progress from foundational syntax to object-oriented programming (OOP) and practice platform challenges.


📂 Repository Structure

The files in this repository are categorized into foundational syntax, object-oriented concepts, and specific problem-solving challenges:

1. C++ Basics & Fundamentals

  • input-output.cpp — Handling standard I/O streams in C++.
  • condition.cpp & switch_case.cpp — Control flow structures.
  • dynamic_variable.cpp & dynamic_array.cpp — Utilizing the stack vs. heap memory using the new keyword.
  • eof.cpp — Working with End-Of-File loops for continuous data streams.
  • namespace.cpp — Understanding scopes and avoiding naming collisions.

2. Object-Oriented Programming (OOP)

  • class_and_object.cpp — Defining structures, attributes, and methods.
  • constructor.cpp — Implementing default, parameterized, and copy constructors.
  • dynamic_object.cpp & dynamic_object_copy.cpp — Instantiating and replicating objects dynamically in memory.
  • object_return_from_function.cpp — Returning complex data structures from functions.
  • array_of_objects.cpp — Managing collections of custom objects.

3. String Manipulation & Streams

  • string_constructor.cpp — Different methods to initialize string objects.
  • string_capacity_methods.cpp — Working with capacities (size, resize, clear, empty).
  • string_element_access.cpp — Iterating and modifying specific characters.
  • string_modifier_methods.cpp — Appending, pushing, and assigning strings.
  • string_input_with_spaces.cpp — Safely reading lines using getline().
  • stringsteam.cpp — Tokenizing strings into individual components.

4. Algorithms & Array Operations

  • sort_array_using_sort_function.cpp — Utilizing the built-in C++ STL sort() method.
  • counting_sort.cpp — Implementing non-comparison linear sorting algorithms.
  • custom_sort.cpp — Writing custom logic/comparators to sort complex data structures.
  • min_max_swap.cpp — Streamlining data manipulations using built-in utility functions.

🛠️ Getting Started

Prerequisites

To compile and execute these files, you need a C++ compiler installed on your system (such as GCC/G++ or Clang).

How to Run Locally

  1. Clone the repository:

    git clone github.com
  2. Navigate to the directory:

    cd Learning_and_Solving_Problems_Using_Cpp
  3. Compile a file (e.g., class_and_object.cpp):

    g++ class_and_object.cpp -o program
  4. Run the compiled executable:

    • Windows:
      program.exe
    • Mac/Linux:
      ./program

📈 Learning Journey

This space will continuously be updated with data structure implementations (like Linked Lists, Stacks, Queues, and Trees) and solutions to competitive programming problems from platforms like Codeforces and LeetCode.

About

A hands-on archive of C++ scripts tracking my journey through fundamental syntax, basic algorithms (sorting, string manipulation), and dynamic memory management.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages