SingleAddress * sA = new SingleAddress(
//Add address to AddressBook
So, the problem is that I don't know how to display all the entries in aB (the AddressBook).
And the question states that my returnListOfAddresses() must not take any input.
I tried adding #include "SingleAddress" and tried to use toString() from the SingleAddress class but it's not working.
Members may edit their posts for a limited time period immediately after, for the purpose of correcting spelling and grammar mistakes and accidental ommissions. After this initial period expires, posts may only be edited or deleted by DaniWeb team members, and only in cases where they do not comply with our forum rules for the purpose of making said content comply with all rules.