Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int hindex = 0;
- int hvalue = 0;
- // now run their functions
- for (int i=0;i<MAXCARS;i++)
- {
- myCarList[i].display();
- if(hvalue < myCarList[i].ratio())
- {
- hindex = i;
- hvalue = myCarList[i].ratio();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement