for example I have a code which I need to insert every time a worker for the first worker its easy because all I do is
Worker** list_of_workers=new Worker*[1];
list_of_workers[0]=new Worker(name ,id , seniority );
for the next worker I want to increase the size of list of workers and add another worker and i really stuck on this one.