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
Reply With Quote