Just wondering... Why have you used a structure of arrays rather than an array of structures?
Switching to an array of structures would reduce the length of that program by at least 30 lines of...
Type: Posts; User: iMalc
Just wondering... Why have you used a structure of arrays rather than an array of structures?
Switching to an array of structures would reduce the length of that program by at least 30 lines of...
I specifically quoted that part because of the fact that you were using a different variable for the indexing as was being altered in the loop.
There's nothing really weird or wrong about using a...
This doesn't look right either:
for (i = a; i < b-1; ++i)
fprintf(ofp,"%lf, %lf, %lf, %lf \n", tmp.t[iiii], tmp.x[iiii],tmp.y[iiii], tmp.z[iiii]);
You know you've got a problem when you've...