21 years, 3 months ago
Highlights
Community contributions featuredQuote:Original post by ZahlmanAs noted. Also, your cast is not supposed to be necessary: it is happening because you have made the error of not #including <stdlib.h;>, whic…
21 years, 3 months ago
21 years, 3 months ago
in Dev-Cpp 4, this works, but not in Dev-Cpp 5: /** create an array of arrays **/ void** aalloc(uint elements, uint size) { uint i; void **p=malloc(sizeof(*void)); for (i=0; i &…
21 years, 3 months ago
I've been working on trying to "slide" along walls and slanted floors and such recently, and its been a real head ache. at first I had some very sloppy alorithms that worke…
21 years, 10 months ago
I'm having a bit of trouble and I'm not sure why... correct me if I'm wrong, but the angle between two vectors is this: for points A, B, and C: V1 = B - A V2 = C - A L1 = (V1.x…
21 years, 10 months ago
Latest Activity
See all in DiscussionsQuote:Original post by ZahlmanAs noted. Also, your cast is not supposed to be necessary: it is happening because you have …
21 years, 3 months ago
Quote:Original post by OluseyiQuote:Original post by LabRat404it makes no difference which side of a variable the dereference operator is on, …
21 years, 3 months ago
Quote:Original post by FrunyYou wrote *void instead of void*. And you probably meant malloc(elements*sizeof(void*)).it makes no difference which side of …
21 years, 3 months ago