I have a multi class program that manually inputs information from users. However it currently stores information for one person at a time. I need to make a vector which i do know how to do. However i do not know how to incorporate that vector into my functions in order to be able to sum totals of refunds and cycle through different refunds for outputs of all refunds.
Also would do you think it would be easier to do a separate function for sums and Largest/Smallest numbers or to include them into already established print function?
Here is a sample of my Main print function
void RefundType::printRefund()
{
cout<<"Company..........: " << Company << endl;
Recipient.printPerson();
cout<<"Date Received (Form) : ";
ReceivedDate.printDate();
cout << "Date Mailed (Refund) : ";
MailedDate.printDate();
cout << "Refund amount........: " << Amount << endl;
cout << "Debit Card Number....: " << CardNumber << endl;
cout << "**************************"<<endl;
}
Here is my Refund Class