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.

C++: Trying to get a sortAccounts() function

C++: Trying to get a sortAccounts() function working where it will sort

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!