Advertisement
pushrbx

Kev example session9_1

Mar 12th, 2013
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. int hindex = 0;
  2. int hvalue = 0;
  3.  
  4. // now run their functions
  5. for (int i=0;i<MAXCARS;i++)
  6. {
  7.     myCarList[i].display();
  8.  
  9.     if(hvalue < myCarList[i].ratio())
  10.     {
  11.         hindex = i;
  12.         hvalue = myCarList[i].ratio();
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement