Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Herp derp

Name: Anonymous 2011-04-20 12:30

ITT: How you decide the amount of elements in an array in C++ with only a pointer to the array. I bet you can't do it.

Name: Anonymous 2011-04-20 15:08


struct hax {
   size_t len;
   void* data;
};

struct hax* hax_myanus(size_t len)
{
   hax* myanus = malloc(sizeof(struct hax));
   myanus->data = rand() % pow(2, sizeof(void*));
   return myanus;
}

Name: Anonymous 2011-04-20 19:16

>>12
Fuck you fag, my random memory allocation model is the most optimized thing your eyes will ever see.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List