https://github.com/glanguage/homework_list
A list of homework :P
https://github.com/glanguage/homework_list
cpp homework
Last synced: 6 days ago
JSON representation
A list of homework :P
- Host: GitHub
- URL: https://github.com/glanguage/homework_list
- Owner: GLanguage
- Created: 2020-02-28T12:33:36.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-12T14:41:56.000Z (over 6 years ago)
- Last Synced: 2025-01-15T22:26:55.438Z (over 1 year ago)
- Topics: cpp, homework
- Language: C++
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# homework_list
A list of homework :P
[CHANGELOG](CHANGELOG.md)
## Usage
*NOTE: Unix-like OS only!*
After cloning the repo, you need to do some settings.
### Change the Path
Open `./src/cli.cpp`, then you will find something like:
```cpp
const string ROOT = "/Users/Alan/homework_list/";
```
Change it to the path to *your* repo.
*NOTE: Remember to add `/` at the end!*
### Create Folders
`cd` into the repo, and add 2 folders: `./obj` and `./bin`.
### Set PATH Variable
Open (or create) terminal profile (`.bash_profile`, `.bashrc`, `.zshrc` or something like that under `~/` or `etc/`) and add:
```shell
export PATH=[path-to-the-repo]/bin/:PATH
```
And, obviously, `[path-to-the-repo]` means the path to the repo (without `/` at the end) .
After doing all these complicated settings, you can finally `cd` into the repo and run:
```shell
$ make
$ make clean
```
where `make` will compile the repo and `make clean` will remove the `*.o` files.
Then, you can start the program by command `homework`. Run
```shell
$ homework help
```
for further information.
If you want to uninstall the program *(which is strongly not recommended)* , run:
```shell
$ make uninstall
```
which will remove the executable.