This project contains various C++ programs demonstrating different concepts such as classes, templates, file handling, exception handling, and algorithms like Kruskal's algorithm and island counting.
The project is structured as follows:
addTwoNumberPointers.cpp
: Demonstrates the use of pointers.ArrayOperations.cpp
: Contains operations on arrays.BubbleSortTemplates.cpp
: Implements bubble sort using templates.classFloat.cpp
: Contains a class demonstrating operations on float.classTemplate.cpp
: Demonstrates the use of class templates.college_class.cpp
: Contains a class representing a college.complex_number_operations.cpp
: Performs operations on complex numbers.customer_data.cpp
: Handles customer data.employee_net_salary.cpp
: Contains a class Employee that calculates the net salary of an employee.exceptionHandling.cpp
: Demonstrates exception handling in C++.expression_division.cpp
: Performs division operation.file_number_statistics.cpp
: Handles file operations and calculates statistics.fileHandling.cpp
: Demonstrates file handling operations.FindPairsInArray.cpp
: Finds pairs in an array.friendFuncClass.cpp
: Demonstrates the use of friend functions in a class.functionTemplate.cpp
: Demonstrates the use of function templates.functionTemplate2.cpp
: Another example of function templates.inheritance.cpp
: Demonstrates the concept of inheritance in C++.island/
: Contains programs related to island counting problem.kruskal/
: Contains programs implementing Kruskal's algorithm.matrix_operations.cpp
: Performs operations on matrices.matrix_transpose.cpp
: Transposes a matrix.operatorFuncOverloading.cpp
: Demonstrates operator function overloading.
Each .cpp
file is a separate program and can be compiled and run independently. For example, to compile and run employee_net_salary.cpp
, use the following commands:
```bash
g++ employee_net_salary.cpp -o employee_net_salary
./employee_net_salary
```
Contributions are welcome. Please open an issue to discuss your idea or submit a pull request.
This project is licensed under the MIT License