#include /* include file header*//* begin program here */main(){ /* begin code block here */ printf("Hello World!\n"); /*Output text to console */} /* end code block
I realize the assumed "void" on main is legal in C, but isn't it still considered bad practice? Every comment in the code uses the multiline comment no matter how many lines. The manual specifically says not to use // comments because they can cause strange errors... I would think /**/ comments are worse, since many students will be tempted to nest them and such.
Anyway, the class still looks fun. We are writing code for a "smart car" to follow a white line, as well as a self-controlled blimp.
I haven't done much with the Scene graph engine lately. I keep thinking of new ways to implement it. I think I will just go for a nice easy, unoptimized approach and just try to finish it for now. If I have time, I can always clean it up and rewrite portions.
I did manage to fix the memory leak. It was aparently due to a bad copy/paste job on my part. I was actaullty making two copies of each texture thsat I loaded,but only deleting one of the pointers. It was an easy fix, just delete the offending line...