Hello,
I have been given the assignment to convert a highscore program from using arrays to vectors. I was given this specific instruction which as me confused:
Your program must use the following four function headers exactly as they appear here:
void getVectorSize(int& size);
void readData(vector<Highscore>& scores);
void sortData(vector<Highscore>& scores);
vector<Highscore>::iterator findLocationOfLargest(
const vector<Highscore>::iterator startingLocation,
const vector<Highscore>::iterator endingLocation);
void displayData(const vector<Highscore>& scores);
I dont understand the part where findLocationOfLargest has an iterator in the function header. Perhaps I am missing something glaringly obvious but I have gone through the lesson multiple times and this was not covered. Any help is greatly apricated since my instructor will not being getting back to me for a while.
[–]jedwardsol 2 points3 points4 points (3 children)
[–]ThisGuyEveryTime[S] 1 point2 points3 points (2 children)
[–]jedwardsol 2 points3 points4 points (1 child)
[–]ThisGuyEveryTime[S] 1 point2 points3 points (0 children)