#include #include "exercise_1.hpp" #include "exercise_2.hpp" #include "exercise_3.hpp" using namespace std; void ex_1(); void ex_2(); void ex_3(); int main() { ex_1(); ex_2(); ex_3(); return 0; } void ex_1() { Pair1 p1(6, 9); cout << "Pair: " << p1.first() << ' ' << p1.second() << '\n'; const Pair1 p2(3.4, 7.8); cout << "Pair: " << p2.first() << ' ' << p2.second() << '\n'; } void ex_2() { Pair p1(6, 7.8); cout << "Pair: " << p1.first() << ' ' << p1.second() << '\n'; const Pair p2(3.4, 5); cout << "Pair: " << p2.first() << ' ' << p2.second() << '\n'; } void ex_3() { StringValuePair svp("Amazing", 7); std::cout << "Pair: " << svp.first() << ' ' << svp.second() << '\n'; }