I am trying to create an array of structs. I am extracting the info from a file and putting them into the struct using the getline function. But I don't know how to put the structs into the arrays. I need to make a loop to put the info in the structs. The struct looks like this:
Is there something easy that I'm missing that does this?
struct students
{
string id;
string fname;
string lname;
};
Is there something easy that I'm missing that does this?