Subject:Inner/outer loops
Posted by: GPD
Date:9/13/2007 8:30:51 PM
Is the above acceptable way to do two loops? Message last edited on9/13/2007 8:31:36 PM byGPD. |
Subject:RE: Inner/outer loops
Reply by: GPD
Date:9/13/2007 8:33:34 PM
When I add the outer loop the compiler tells me it expects another ")". If I add one, or several it still asks for more... The code runs fine with just the inner loop... |
Subject:RE: Inner/outer loops
Reply by: GPD
Date:9/13/2007 8:38:34 PM
You handled loops and arrary's like this in a previous example. Is this a better way then the way I have done it? advantages? |
Subject:RE: Inner/outer loops
Reply by: _TJ
Date:9/14/2007 1:04:48 AM
yes this is fine. It looks to me like you could move the second array out of the outer loop to the top of the function, but it sould work either way. the problem is probably something else. can you post the code that has the line the compiler complains about? (compiler errors have line numbers). tj |
Subject:RE: Inner/outer loops
Reply by: GPD
Date:9/14/2007 10:22:07 AM
Compiler error 0x80004005 on Line 183,5 : } expected
|
Subject:RE: Inner/outer loops
Reply by: GPD
Date:9/14/2007 10:29:03 AM
Complier error occurs after the ")" below:
Somehow the outer loop is not closed... If I remove the outer loop and change to:
There is no errror. Message last edited on9/14/2007 11:08:59 AM byGPD. |
Subject:RE: Inner/outer loops
Reply by: GPD
Date:9/14/2007 12:15:59 PM
Moving both arrays to the top does not help. Do I need something like this:
I am a beginner and do not follow the above perfectly, but it seems to me that maybe this technique is relavant? |
Subject:RE: Inner/outer loops
Reply by: GPD
Date:9/17/2007 6:15:37 PM
nevermind... I just learned about the difference between ) and } ( shift-0 or shift-] ) That is impossible to see on my monitor!!!!! I guess a code editor would have told me this... |