12 Sep
2010
12 Sep
'10
9:44 a.m.
Mike,
Fracton's code is different and doesn't have new and old as such. I think it does exactly the same thing though. I will just post the code since it is only a few lines. You can scroll back a few messages to see the FractInt equivalent.
double totalDistance;
// Complex numbers
complex lastZ;
complex z;
This means lastZ and z are structures.
lastZ = z; // tdis initialization
I believe this make the structure lastZ point to the structure z. This is different than using: lastZ.r = z.r; lastZ.i = z.i; which moves the contents of z to lastZ, but leaves the pointers pointing to separate structures. Jonathan