CAN HAS STDIO?
VISIBLE "HAI WORLD!"
HAI in the first line declares the start of our LOLCODE program. HAI means Hello in Internet slang.
CAN HAS STDIO? is C equivalent of #include
VISIBLE "HAI WORLD!" is for printf("HAI WORLD!")
KTHXBYE or Ok Thanks Bye declares the end of a program.
LOLCODE uses several funny constructs. For example for looping it has:
IM IN YR LOOP to start the loop and IM OUTTA YR LOOP to end it.
Variable declaration by:
To open a file:
PLZ OPEN FILE "FILENAME.TXT"?
For a true value of the above statement:
For a false value:
O NOES which in plain english is Oh No!!!
For more details visit the official site http://lolcode.com or WikiPedia page
There are more trivial things like this. Check out INTERCAL and Brain****
There are people filled in this world to carve fun inside boring things like programming. LOL enjoy the world!
Post a Comment