Brandon
2013-09-07 14:58:21
I just came across something called Analog literals by accident and it's NOT a language extension.. Just a cool feature. Thought I'd share it.
http://www.eelis.net/C++/analogliterals.xhtml
Example:
And it'll calculate the area of the truck.. Weird?!
Any other language features of any language you find is cool? Hidden features? Anything?
http://www.eelis.net/C++/analogliterals.xhtml
Example:
int Area = TruckClass(_________________________________________________
/| | |
|| | |
.----|-----,| |
|| || ==|| |
.-----'--'| ==|| |
|)- ~| ||_________________________________________________|
| ___ | |____...==..._ >\______________________________|
[_/.-.\"--"-------- //.-. .-.\\/ |/ \\ .-. .-. //
( o )`==="""""""""`( o )( o ) o `( o )( o )`
'-' '-' '-' '-' '-').area();
And it'll calculate the area of the truck.. Weird?!
Any other language features of any language you find is cool? Hidden features? Anything?