I was told to write a function that will read data, in a user defined text file, into a vector of structs. I am not sure where to start with this. Could some one tell me what is a vector of structs, I know vectors and I know structs, but I dont know whats a vector of structs. As well, is there a specific algoritm in c++ to use when reading from a user defined text file, or does cin work? If someone can give me a few pointers to help get started with this I would appreciate it. Thanks.
A sample of one of the text files is formatted like this:
3
Jon Smith 20009 40 32 12 13 14 17 12
Wilma Vohn 76448 20 30 12 12 18 20 14
Mark Matthews 55642 50 52 15 16 16 15 17