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

C++ is awesome!

Name: Anonymous 2006-11-06 18:09

(a<b?a:b<c?b:c) = val();

Name: Anonymous 2007-07-16 19:00 ID:1Qg4jL4B

char *foo = (char[52]){0,};

of course, this also works in C99 where it is more cool.

Name: Anonymous 2007-07-16 19:01 ID:1Qg4jL4B

>>24
it's also a cool alternative to

char *foo = new char[52];

when you can't be arsed deleting/freeing it after you've used it. (happens at the end of the scope)

Name: Anonymous 2007-07-17 2:39 ID:Heaven

>>24
it actually works ONLY in c99

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