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.
The files in this repository are categorized into foundational syntax, object-oriented concepts, and specific problem-solving challenges:
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 thenewkeyword.eof.cpp— Working with End-Of-File loops for continuous data streams.namespace.cpp— Understanding scopes and avoiding naming collisions.
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.
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 usinggetline().stringsteam.cpp— Tokenizing strings into individual components.
sort_array_using_sort_function.cpp— Utilizing the built-in C++ STLsort()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.
To compile and execute these files, you need a C++ compiler installed on your system (such as GCC/G++ or Clang).
-
Clone the repository:
git clone github.com
-
Navigate to the directory:
cd Learning_and_Solving_Problems_Using_Cpp -
Compile a file (e.g.,
class_and_object.cpp):g++ class_and_object.cpp -o program
-
Run the compiled executable:
- Windows:
program.exe
- Mac/Linux:
./program
- Windows:
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.