Hello,
I'm stuck on a program where I'm supposed to write a member function that returns a vector!!
let say my code looks like the following:
Code:
template<typename TYPE>
class Employees
{
 public:
   void addEmployees();
 private:
   vector <TYPE> worker;
   string city;
   int age;
   int count;
};
now what I need to do is write a constructor that takes the name of the city and age as arguments and then returns a set of objects of type TYPE with count = 0 .Something like makeEmployees(city, age).
Thank you very much.
Sofia