Monday, July 14, 2008

Legal C++

who = !me?!you?!us:you:!you?me:us;

What is also "cool" is that if you and me are boolean and us is an integer that equals 2 then it returns the number of people involved as well.

Also a cool example i pulled off wikipedia.org.

_(__,___,____){___/__<=1?_(__,___+1,____):!(___%__)?_(__,___+1,0):___%__==___/ __&&!____?(printf("%d\t",___/__),_(__,___+1,0)):___%__>1&&___%__<___/__?_(__,1+>2*b || !(2*b)

float myBoat;
long schlong;
short stuff;
int eresting;

No comments: