|
-
September 21st, 2009, 07:57 AM
#10
Re: arrays problem
 Originally Posted by dlorde
Exit the loop immediately after resetting the number (i.e. in the 'if' block). This points to the value of always using curly braces {} with control statements like 'if'.
Experience is a poor teacher: it gives its tests before it teaches its lessons...
Anon.
Thanks for your pointer. Works now.
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
|