solve Day01 with cpp

This commit is contained in:
2023-12-02 12:14:52 +01:00
parent 88d6e8b852
commit b166b0ef70
3 changed files with 134 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ For example:
```bash
cd Day01/python
python3 part2.py test.txt # for testing
python3 part2.py test.txt # for testing (not all Days will have that)
python3 part2.py
```
@@ -61,7 +61,15 @@ You can either test or run the solution:
```bash
cd Day01/rust
cargo test #running tests
cargo run
cargo run # run with the actual input file
```
## C++
Install a C++ compiler like g++ on your machine. Then:
```bash
cd Day01/cpp
g++ -o solution solution.cpp # compile
./solution #run the binary
```
## JavaScript