-
December 2nd, 2015, 04:17 PM
#1
need help with program for class
Form1.cs On line 33 and line 48 it keeps saying that the index is outside of the bounds for array. How do I fix this?
-
December 2nd, 2015, 07:54 PM
#2
Re: need help with program for class
How about use code tags and post the code directly? That way, folks that are trying to help won't have to open an attachment.
-
December 10th, 2015, 11:08 AM
#3
Re: need help with program for class
An array starts at 0 index.
So it looks like
Code:
double highest = iArray[filename.Length];
should be
Code:
double highest = iArray[filename.Length - 1];
It is the same issue with lowest. on line 48
Last edited by pebmeister; December 10th, 2015 at 11:09 AM.
Reason: missed slash on close CODE tag
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|