View Single Post
  #3  
Old 04-16-2004, 08:38 PM
vee_ess's Avatar
vee_ess vee_ess is offline
Super Moderator
 
Join Date: Aug 2001
Location: Phoenix, Arizona
Posts: 2,781
Send a message via ICQ to vee_ess Send a message via AIM to vee_ess Send a message via MSN to vee_ess Send a message via Yahoo to vee_ess
Default

What are the errors that you are getting? I don't have a compiler either and don't have the time to install Visual Studio right now. Without knowing what the compilers reports as errors, the only error I see off hand is:

Code:
if(lens[i]>largest) 
largest=i++;
sum+=lens[i];
which should be

Code:
if(lens[i]>largest) 
largest=lens[i];                    //i++ changed to lens[i]
sum+=lens[i];
i++;                                //i++ added because removed previously
__________________

It's not a car, it's an addiction.
The only carb that matters is under the hood.
There's an option for most vehicles that increases brake horsepower, increases mileage, increases driver control, lasts longer than the alternative, and even reduces the price of the vehicle. Despite all this, most people in this country choose the alternative, an automatic transmission.

Reply With Quote