These exercises demonstrate usage of GitHub Copilot for C++. The app is a simple CLI Tool that allows users to convert in between different units.
cd to the exercisefiles/c++ directory. Run the following two commands to prepare the make file and then build the project:
cmake -S . -B build
cmake --build build-
To run the main program:
./build/main
-
To execute the tests:
./build/run-tests
Use GitHub Copilot to assist with the following tasks:
- Finish the
DistanceConversion Class and include it in themain.cpp(optionally, first implement tests and do a TDD approach) - Add some Tests for the
Distance::convertDistance - Refactor all
printfandscanfand usestd::coutandstd::cininstead - Add a new Conversion Class for
Weightto convert in between Kilos and Pounds