#include #include #include class person { public: string fname, lname, address, phone; person(string f, string l, string a, string p); void relocate(string newa, string newp); void print(); }; person::person(string f, string l, string a, string p): fname(f), lname(l), address(a), phone(p) { } void person::relocate(string newa, string newp) { address = newa; phone = newp; } void person::print() { cout << fname << " " << lname << ", of " << address << ", phone " << phone; } /* insert 2a here */ void main() { vector A; A.push_back(new person("Lavinia", "Leopard", "55 Frog St.", "4046662233")); A.push_back(new person("Jim", "James", "987 Horse Rd.", "7364536475")); A.push_back(new person("Joe", "Jones", "123 Cat St.", "3051112222")); A.push_back(new person("Jemimah", "Jones", "123 Cat St.", "3051112222")); A.push_back(new person("Jimmy", "Jones", "123 Cat St.", "3051234321")); A.push_back(new person("Jilly", "Jones", "123 Cat St.", "3053242315")); A.push_back(new person("Anathema", "Hamsoup", "234 Dog Av.", "3057651243")); /* insert 2b here */ for (int i = 0; i < A.size(); i += 1) { cout << i << ": "; A[i]->print(); cout << "\n"; } }