SRL Archive - General

Analog Literals


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:


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?

Mark

2013-09-07 18:19:43

i've seen this before nothing like you have done with the truck seen it with cubes boxes ect very creative.