Does this ring a bell
Code:
.....
void Private::displaypte()
.....
void Commercial:: displaycc()
...
for (int g =0 ; g < cruiser::numprivate; g++)
pte[g].displaypte();
cout << "("<< g << ")" << pte[g].displaypte()<< endl; //use for loop can call the displaypte function, to display out each object of the pte array.
}
....
for (int j =0 ; j < cruiser::numcommercial; j++)
cout << "("<< j << ")" << cc[j].displaycc()<<endl; //use for loop can call the displaycc function, to display out each object of the cc array.
....
Plus there might be missing a starting '{' in that first for loop.