Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page.
X
I have a problem with an algorythm that refuses to do as I wish - maybe it's a case of code blindness from staring to long at the screen.
I tried to write an algorythm that takes a given value from a matrix and subtracts all other values (with the exception of its own value) in this matrix from it. I don't understand what's wrong. So if anybody has an idea how to change my code...
Your problem is the return statement. Return causes a return from the entire expression, not just the innermost program bar. So you never get past the first value of i, as you execute a return and terminate the calculation of the entire region. __________________ � � � � Tom Gutman