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
Distance
Conversion 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
printf
andscanf
and usestd::cout
andstd::cin
instead - Add a new Conversion Class for
Weight
to convert in between Kilos and Pounds