Original Post
OK, the situation is like this:
Can anyone think of a way to do this ?
(It''s for a modeler prog im makin, the idea is to fuse two points permanently instead of checking each point if the other one has moved etc.. )
JT
struct x {
double a[2];
};
struct y {
double *aptr[2];
};
y.aptr[0] = &x.a[0];
y.aptr[1] = &x.a[1];
// Now, I want to change a[] so that both a[0] and a[1] points to
// the same value. So that if you set a[0] = 1.03, then a[1] would
// also become 1.03
// Is this even possible ? And it also has to be done through the
// *aptr pointer in the y struct
|
