Yagl update(again) + coding problem.
- Posted by Jeremy Peterson <ptl99 at hotmail.com> Aug 07, 2006
- 544 views
The library is done but delayed since I wanted to write a good demo or two before releasing it and I've been pretty busy. My problem has to do with this piece of code:
dist = sqrt((209+p[ix_part][a]-p[x_part][a])*(209[p[ix_part][a]-p[x_part][a])+ (138+p[iy_part][a]-p[y_part][a])*(138+p[iy_part][a]-p[y_part[a]))
The interpreter always crashes with a: Syntax error - expected to see possibly ')', not '[' dist = sqrt((209+p[ix_part][a]-p[x_part][a])*(209[p[ix_part][a]-p[x_part][a])+ (138+p[iy_part][a]-p[y_part][a])*(138+p[iy_part][a]-p[y_part[a])) Either I'm too dense or something, but I've checked it over a dozen times and can't find any problem. Jeremy *argh*