
Implement coord_pair, a compact C++98 class for a pair of integer coordinates.
std::cout << (coord_pair(3, -2) + coord_pair(4, 5)) << "\n";{7, 3}std::cout << (2 * coord_pair(-1, 6)) << "\n";{-2, 12}coord_pair.hppcoord_pair.cppiostreamstream output
Run the tests to grade your code
Implement coord_pair, a compact C++98 class for a pair of integer coordinates.
std::cout << (coord_pair(3, -2) + coord_pair(4, 5)) << "\n";{7, 3}std::cout << (2 * coord_pair(-1, 6)) << "\n";{-2, 12}coord_pair.hppcoord_pair.cppiostreamstream output
Run the tests to grade your code