Raised This Month: $ Target: $400
 0% 

Which Programming language are you?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 05-07-2007 , 17:20   Re: Which Programming language are you?
Reply With Quote #19

Have you ever heard of this language?

Code:
Hello World!

 The following program prints "Hello World!" and a newline to the screen:
 ++++++++++
[>+++++++>++++++++++>+++>+<<<<-] The initial loop to set up useful values in the array
>++.                             Print 'H'
>+.                              Print 'e'
+++++++.                         Print 'l'
.                                Print 'l'
+++.                             Print 'o'
>++.                             Print ' '
<<+++++++++++++++.               Print 'W'
>.                               Print 'o'
+++.                             Print 'r'
------.                          Print 'l'
--------.                        Print 'd'
>+.                              Print '!'
>.                               Print newline
For readability, this code has been spread across many lines and comments have been added.
 Brainfuck treats all characters but +-<>[],. as comments so no special syntax for a comment is needed.
 The code could just as well have been written as:
  ++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
http://en.wikipedia.org/wiki/Brainfuck

__________________

Last edited by regalis; 05-07-2007 at 17:23.
regalis is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:53.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode