[rescue] Cooling (Long Message, sorry)
Big Endian
bigendian at mac.com
Tue Apr 16 19:57:32 CDT 2002
>For instance, wanting a float[x][y] today. I ended up doing:
>
>float **f;
>int *x=new int[x];
>f =(float**)x;
>float *g;
>
>for (int i=0; i<y; i++) {
> g = new float[y];
> f[i]=g;
>}
ok... WHY? Assuming x and y are fixed values you could just do this:
float f[x][y];
and use nested for loops to initialize it?
daniel
--
-----------------------------------------------------------------
"Fragile. Do not drop." -- Posted on a Boeing 757.
More information about the rescue
mailing list