All pastes #933670 Raw Edit

Someone

public cpp v1 · immutable
·published 2008-03-08 12:42 UTC
rendered paste body
void University::ReadData() {   string order;   while (cin>>order){             if (order=="AddStudent"){         AddStud(); break;         }      if (order=="RemStudent"){         RemStud(); break;         }      if (order=="AddProfessor"){         AddProf(); break;         }      if (order=="RemProfessor"){         RemProf(); break;         }      if (order=="AddCourse"){         AddCourse(); break;         }       if (order=="RemCourse"){         RemCourse(); break;         }       if (order=="AssignProfCourse"){         AssignProfCourse(); break;         }      if (order=="AssignProfCourse"){         AssignProfCourse(); break;         }      if (order=="AssingStudCourse"){         AssingStudCourse(); break;         }          else{           break;      }      return;   } }                      void University::AddStud (){     ID StudID;     string faculty;     Name name;          cin >> StudID ;     cin >> faculty;     getline (cin, name,'\n');     students.push_back (Student(StudID, stringToFaculty(faculty), name));          return; }