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 am currently getting the error that 'class std::vector' has no member named 'accountNumber'| Thanks.

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 am

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!