I'm making a for loop in order to allow the "teacher" to add information about the "student" until enter is pressed. I can't figure out where I will store what the user types in for name. Please help!
#include <iostream>
#include <string>
#include <sstream>
struct Student
{
std::string name;
int age;
double GPA;
std::string graduationDate;
}
int main()
{
std::list<Student> students;
for (int i=0; i<=100; i++){
std::cout<< "Please enter the name of the student, or enter nothing to exit loop."<<std::endl;
std::cin>>
}
}