I am writing a program that will allow the user to enter new student record(student ID and the corresponding mark). The program will then store this record and can be retrieved for later use (such as determining the average mark or displaying records).
My question is, what will be the best approach/method to code this section of the program?
Additional info:
The records are stored in a struct:
Store your student records in a std::vector.
Write a function to ask the user for information and return a StudentRecord, which can be inserted into the vector.
[edit] A good way to initialize a vector with static data: