Question: C++: Trying to get a sortAccounts() function working where it will sort all of the vector structures based on the value of the accountNumber. So
C++: Trying to get a sortAccounts() function working where it will sort all of the vector structures based on the value of the accountNumber. So far, here is my structure, makeAccount(), and sortAccounts() function. I posted this question previously, but I am not allowed for this assignment to have an extra function to assist in the sorting. All sorting must be done in the sortAccount() function. Thanks.


I tried to make something like above, but it doesn't work as I would like it to and I don't think this would be the correct approach. I was attepting to use sort() but also couldn't get that to work the way I wanted it to.
struct Account int accountNumber; string lastName string first Name double account Balance vector
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
