Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string fName, lName, course, fullName;
- char unit, grade;
- while( in >> fName >> lName )
- {
- fullName = fName + " " + lName;
- this->add_student( fullName );
- while( in >> course >> unit >> grade )
- {
- this->add_course( fullName, course, unit, grade );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement