Hi all,

I have this function to compute for the distance between two given points. I have been getting this error:

Code is as follows:Code:error C2064: term does not evaluate to a function taking 1 arguments

I think I wasn't able to put the formula in the best code format.Code:float dist(float ax, float ay, float az, float bx, float by, float bz) { float d = 0.0f, dist = 0.0f; distance = ((bx-ax)(bx-ax)+(by-ay)(by-ay)+(bz-az)(bz-az)); d = sqrtf(distance); cout << d << endl; return d; }

Any ideas?

Thanks...