void print_accts(BankAccount account[], int num_accts){ //create pointer variable BankAccount * b; for(int i=0; i<num_accts; i++){ //stores our current account b = &account[i]; cout << "name: " << b->getFirstName() << " " << b->getLastName() << endl; cout << "\t\tAccount Number: " << b->getAccountNumber() << endl; cout << "\t\tAccount Type: " << b->getAccountType() << endl; cout << "\t\tAccount Balance: " << b->getAccountBalance() << endl; } }