Running into an issue trying to fill a vector of structs. I am completely stuck. Here the assignment question
Using the data file provided on the next page, write the C++ program to implement a vector of structs containing wines, vintage and scores. Create a file names wines.dat using the data on the next page. Load this data to your vector. Calculate the average score of the wines stored in the vector and output it. Then search the vector using a simple algorithm to return the location in the vector of the highest ranking Merlot to your main. Output the information at this location as shown below.
I am not looking for a complete solution as this is homework but what I am running into an issue with is filling the vector of structs with the input file. The input file looks like this
Peter Michael Chardonnay
Revana Cabernet Sauvignon
Altamura Cabernet Sauvignon
Any help would be greatly appreciated.