Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 956 Bytes

README.md

File metadata and controls

37 lines (24 loc) · 956 Bytes

C++ Demo

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.

Getting Started

Build

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

Run & Test

  • To run the main program:

      ./build/main
  • To execute the tests:

      ./build/run-tests

Exercises

Use GitHub Copilot to assist with the following tasks:

  • Finish the Distance Conversion Class and include it in the main.cpp (optionally, first implement tests and do a TDD approach)
  • Add some Tests for the Distance::convertDistance
  • Refactor all printf and scanf and use std::cout and std::cin instead
  • Add a new Conversion Class for Weight to convert in between Kilos and Pounds