[rescue] C was Cooling
Andrew Weiss
ajwdsp at cloud9.net
Thu Apr 18 07:15:35 CDT 2002
On Tuesday, April 16, 2002, at 06:45 PM, Joshua D Boyd wrote:
> 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;
>
For me C syntax still looks like someone took some nice Pascal code,
loaded it into a shopping cart and sent it careening into a brick wall
in a totally inelastic collision. It's too short-handy IMHO. This
codes snippet makes me cross-eyed :-P
Maybe it'd look better like this with a few tabs and stuff :-)
float ** f;
int *x = new int[x];
etc.
More information about the rescue
mailing list