Hi! I don't know how many people here actually know brainfuck, but I started taking a look at it today. I'm trying to work on a
very basic calculator, but it's really hard to find any documentation...
Anyway, if anyone can suggest some useful sites or give me some pointers, I'd be really grateful
brainfuck
+++++++++
[>+++++++>++++++++++>+++>+<<<<-]
>++++++.
>++++++++++++++++++++.
++++++.
---------------.
+++++++++++++.
<-------------------------------------.
>-----------------.
<.
++++++++++++++++++++++++++++++++++++++++++++++.
>++++++++++++++++++++.
--------.
-----------.
+++.
+++++++++++++.
<--------------------.
,>.
The main thing is the last line, I want to get a number from the keyboard.
As for everything before it, it basically initialises it all and then outputs "Enter a Number:"
Honestly, I'm not too sure if
any of it is the best way to do it.

Thanks in advance,
Danny~
EDIT:Thanks to anyone who considered this, but I managed to figure it out. Here's the code:
brainfuck
[-]>[-]<
>++++++[<+++++++++++++>-]<.
+.
+++++.
---------------.
-----------.
>+++++[<----->-]<-.
>++++[<+++++++++++++>-]<.
>++++[<+++++>-]<.
---.
>+++++++[<---------->-]<+.
>+++++++[<++++++++++++>-]<-.
++.
--------.
>+++++++[<----------->-]<.
>+++++++[<+++++++++++>-]<.
++++++++.
--.
+.
>+++++++[<------------>-]<.
>++++++[<+++++++++++>-]<.
+++.
>+++++++[<---------->-]<+.
>++++++++[<++++++++>-]<+.
>++++++++[<-------->-]<-.
>+++++++[<++++++++++++>-]<-.
----------.
+++++.
-------.
+++++.
-------.
>+++++++[<---------->-]<+.
>++++++[<+++++++++++>-]<++.
+++++.
--.
++.
+++++++++++.
>+++++++[<------------>-]<+.
>++++[<----->-]<.
---.
[-]>[-]<
>+++++++[<++++++++++>-]<-.
>+++++[<++++++++>-]<+.
++++++.
---------------.
+++++++++++++.
>+++++++++[<--------->-]<-.
>+++++++[<++++++++++++>-]<.
+++.
--------.
>++++++++[<---------->-]<+.
>++++++[<+++++++++++++>-]<.
+++++++.
--------.
-----------.
+++.
+++++++++++++.
+.
>+++++++[<-------->-]<-.
>+++++[<----->-]<-.
,>++++++[<-------->-],[<+>-]<.
This post has been edited by gabehabe: 28 May, 2008 - 03:44 PM