Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why is it error?
#1
int h, i, j

ARRAY(VARIANT) B.createlb(200 0 200 0)

for(i 1 199)
for(j 1 199)
h = (B[i,j]+B[i,j+1]+B[i+1,j+1]+B[i+1,j]+B[i+1,j-1]+B[i,j-1]+B[i-1,j-1]+B[i-1,j]+B[i-1,j+1])/9
B[i,j] = h
out h

--------------
h = all {0}



---------------
What's wrong?
#2
not sure but try using spaces between +
Well thats all for now, 3M
#3
No error. h is 0, because all array elements are 0.


Forum Jump:


Users browsing this thread: 1 Guest(s)