int main() { Name_pairs pairs; pairs.read_names(); pairs.read_ages(); pairs.print(); pairs.sort(); pairs.print(); return 0; }
int main() { Name_pairs name; name.read_names(); name.read_ages(); name.print(); name.sort(); name.print(); // keep window open char cc; cin >> cc; }