View Single Post
Old 07-19-2006, 06:29 AM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,711
redhead is on a distinguished road
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.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote