I have a class called University. I wish to create objects of class Department, and the class University has a vector of type Department. My program is to read a file, and based on the command given, call different functions. My program is to make multiple objects of class Department and put them into the vector named Departments in the University class.
I do not understand how to make multiple objects of type Department with different names.
bool University::CreateNewDepartment(string depName, string depLoc, long depChairId)
{
if (depChairId == 0)
//Department ___(depName, depLoc, depChairId);
//Departments.pushback(___)
return true;
}
___ is a placeholder for the name of the Department objects being created. How do I make it so there is a different name each time it is created? Thank you.