https://github.com/neelkamath/ue18cs331
🖥️ My assignments for PESU's UE18CS331 (Generic Programming) course
https://github.com/neelkamath/ue18cs331
cpp generic-programming
Last synced: 21 days ago
JSON representation
🖥️ My assignments for PESU's UE18CS331 (Generic Programming) course
- Host: GitHub
- URL: https://github.com/neelkamath/ue18cs331
- Owner: neelkamath
- License: mit
- Created: 2021-05-12T13:25:19.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-15T15:24:57.000Z (about 5 years ago)
- Last Synced: 2025-03-12T02:44:27.440Z (over 1 year ago)
- Topics: cpp, generic-programming
- Language: C++
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UE18CS331
These are my assignments for [PESU](https://pes.edu/)'s UE18CS331 (Generic Programming) course. If you're using Windows, use WSL to run the commands.
## Installation
1. Install either g++ or [Docker](https://docs.docker.com/get-docker/).
1. Clone the repo using one of the following methods:
- SSH: `git clone git@github.com:neelkamath/ue18cs331.git`
- HTTPS: `git clone https://github.com/neelkamath/ue18cs331.git`
1. If you're using Docker, run `cd ue18cs331 && docker build -t ue18cs331 .`
## Usage
1. If you're using Docker instead of a local g++ installation, run:
```
docker run --rm -it --mount type=bind,src=$PWD,dst=/app ue18cs331
```
1. Run the programs in the `src` directory using C++20. For example:
```
cd src/unit-2/assignment-1/question-2 && g++ -std=c++2a *.cpp && ./a.out
```
1. If you're using Docker, and have finished running the programs, run `exit`.
## Contributing
The `src` directory uses the format `unit-/assignment-/question-` (e.g., `unit-1/assignment-1/question-1`). Each question must have a `main.cpp` file with the question at the top of the file in a comment.
## License
This project is under the [MIT License](LICENSE).