Question: Lab: Triples Complete the C++ class Triple below so that it represents a vector with 3 elements : (a, b, c) Most of these function
Lab: Triples
Complete the C++ class Triple below so that it represents a vector with 3 elements: (a, b, c)
Most of these function bodies can be written in only a few lines. error checking is not required.
The triple.cpp file is the code unit tested on submission. Implement fetch() before submitting because the unit test use fetch to check results.
You can write your own test cases in main.cpp and test the output of your code main.cpp is ignored when the code is submitted for grading.
Triple.h contains the interface of the class. You do not need to modify this file.
Triple.cpp contains the class definitions.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
