The file im dealing with for input looks like:
Student Name
GPA
Student Name
GPA
etc..
Ive tried using getline followed by fin (my file input command) but i keep getting errors.
I cannot use vectors as i must use getline. I am allowed using fin.ignore() among other but not sure what to do.
while (!fin.eof()) {
getline(fin, studentNames[i]);
fin >> studentGPA[i];
cout << studentNames[i] << endl;
cout << studentGPA[i] << endl;
++i;
cout << numberOfStudents << endl;
++numberOfStudents;
}