Lines 47 and 48 are simple class objects, not templates.
Lines 24-25, why are Owner and Driver pointers? No need for them to be.
Lines 30-31 not needed if Owner and Driver are not pointers.
You have a memory leak because you never delete Driver and Owner.
Lines 37 and 37, vector is a template. You must specialize it.
1 2
|
vector<Person>::iterator it1;
vector<Car>::iterator it2;
|
Lines 42-43, You want vectors of Person and Car respectively, not
char
, and they aren't iterators.
1 2
|
vector<Person> PersonVector;
vector<Car> CarVector;
|
Lines 56, 64, Your
for
loop are bogus.
1 2 3 4
|
for(it1=PersonVector.begin();it1!=PersonVector.end(); it1++)
...
for(it2=CarVector.begin();it2!=CarVector.end(); it2++)
|
You should have a display routine for Car and Person. Your loops are 56 and 64 should simply call the class display routine.
1 2 3 4
|
it1->Display();
...
it2->Display();
|
Likewise, each class should have it's own input routine.