[rescue] Cooling (Long Message, sorry)

Joshua D Boyd jdboyd at cs.millersville.edu
Tue Apr 16 17:45:58 CDT 2002


On Tue, Apr 16, 2002 at 06:33:15PM -0400, Dave McGuire wrote:
> On April 16, Bill Bradford wrote:
> > You're kidding me, right?
> 
>   I wish I were.
> 
> > I never got to that course in college, so I dont *know* C.  I can compile
> > it, I can modify it, I can tweak it and get stuff working - but I'm not
> > what I would call a "C programmer".
> 
>   C is easy to learn...much easier than BASIC in my opinion.  It's the
> commonly-used libraries that one can find "new" things in after having
> been a C programmer for years on end. :)  The language itself is
> simple and small.

If you understand what the hardware is doing, that is.  Most people never
figure it out.

Heck, I still find myself in a bad mood when it comes to certain pointer 
things.

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;
}

Ugly as all get out, but still haven't been able to figure out the proper
way to do it.  I usually skirt the issue by just using a float[y*x] like 
OpenGL does for 4x4 matrixs.

-- 
Joshua D. Boyd



More information about the rescue mailing list