Question: C++ coding 1. Design and implement a Namepairs class(or struct) holding (name,age) pairs where name is a string and age is a double. Represent that
C++ coding
1. Design and implement a Namepairs class(or struct) holding (name,age) pairs where name is a string and age is a double. Represent that as a vector
2. replace Name_pair::print() with a global operator<
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
