Thread: array max num
View Single Post
Old 04-09-2003, 06:19 PM   #4 (permalink)
Apodysophilia
Regular Contributor
 
Apodysophilia's Avatar
 
Join Date: Apr 2003
Location: noWhere, PA
Posts: 104
Apodysophilia is on a distinguished road
Send a message via AIM to Apodysophilia
Quote:
Originally posted by joe_bruin
ary[(aryIndex+1)]

this goes out of bounds when aryIndex is equal to (getSize() - 1)
i know that, that is what i am tryin to fix

Quote:
Originally posted by abc123
what is getSize() sposed to do? if you just want to loop through the array:
getSize() returns the number of used slots in the array, for example the person whants a 10int array but only fills it up to 6, i am trying to pick out the largest int value out of the arrray
Apodysophilia is offline   Reply With Quote