This repository is dedicated to solving Linear Programming problems in C++. It includes various algorithms and methods, all implemented as part of my practice and assignments for coding modules. The focus is on building efficient solutions using fundamental C++ programming concepts.
Before running the C++ code, ensure you have the following set up:
- IDE Recommendation: Install an IDE that supports C++ compilation and execution, such as Visual Studio Code.
- Setting up WSL Ubuntu terminal: Follow this guide to set up WSL on Visual Studio Code for a Linux-based terminal environment.
- Compiler Path Configuration: If you encounter issues with compiler paths in VS Code, refer to this forum discussion for troubleshooting steps.
A Makefile is provided to simplify the process of compiling and running the C++ code via the terminal.
-
Makefile Commands:
make
: Compiles the.cpp
files and generates an executable namedmain
.make run
: Runs the executable usingvalgrind
to check for memory leaks.make clean
: Removes the executable and object files, and clears the terminal.make tar
: Compresses the source files and the Makefile into a.tar.gz
archive.make untar
: Extracts files from the.tar.gz
archive.
-
Makefile
main: g++ -g *.cpp -std=c++98 -pedantic -o main clean: rm -f *.o *.tar.gz main reset clear run: valgrind --leak-check=full ./main tar: tar -cvz *.* -f Code.tar.gz untar: tar -zxvf *.tar.gz
This project is primarily for personal learning and demonstration purposes. However, if you have suggestions for improvements, feel free to open an issue or submit a pull request.
To contribute:
- Fork the repository.
- Create a new branch for your feature or fix.
- Commit your changes.
- Submit a pull request with a clear description.
This project is open source. Please refer to the repository for specific license details.