|
-
Apr 5th, 2010, 10:42 AM
#4
Re: increase array index by 1?
Huh???
Say n = 1, your for loop is from 1 to 1. It should only ever execute once. Then inside your loop you manually increment your loop counter.
You should also never use a variable for your loop counter that is also one of the bounds of the loop, and you shouldn't manually adjust the loop counter.
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
|