English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

++++++++++[>+++++++>
++++++++++>+++<<<-]>
++.>+.+++++++..+++.
>++.<<++++++++++
+++++.>.+++.------.
--------.>+.

It's been ****ing with my brain for a while now

2006-12-07 19:04:59 · 3 answers · asked by syphonbyte 2 in Computers & Internet Programming & Design

3 answers

You should have mentioned this program is written in Brainfuck.

I've made an attempt at converting it to C. It might be helpful for your brain.

It's a bit simpler than the Brainfuck program.

++*ptr; //
++*ptr; //
++*ptr; //
++*ptr; //
++*ptr; //////// 10 times ++*ptr;
++*ptr; //
++*ptr; //
++*ptr; //
++*ptr; //
++*ptr; //

while (*ptr) // While value at pointer is not zero
{
++ptr;

++*ptr; //
++*ptr; //
++*ptr; //
++*ptr; ///////// 7 times ++*ptr
++*ptr; //
++*ptr; //
++*ptr; //

++ptr;

++*ptr; //
++*ptr; //
++*ptr; //
++*ptr; //
++*ptr; //////// 10 times ++*ptr
++*ptr; //
++*ptr; //
++*ptr; //
++*ptr; //
++*ptr; //

++ptr;

++*ptr;
++*ptr;
++*ptr;

--ptr;
--ptr;
--ptr;

--*ptr;
}

++ptr;

++*ptr;
++*ptr;

putchar(*ptr);

++ptr;

++*ptr;

putchar(*ptr);

++*ptr; //
++*ptr; //
++*ptr; //
++*ptr; //////// 7 times ++*ptr
++*ptr; //
++*ptr; //
++*ptr; //

putchar(*ptr);
putchar(*ptr);

++*ptr;
++*ptr;
++*ptr;

putchar(*ptr);

++ptr;

++*ptr;
++*ptr;

putchar(*ptr);

--ptr;
--ptr;

++*ptr; //
++*ptr; //
++*ptr; //
++*ptr; //
++*ptr; //
++*ptr; //
++*ptr; //
++*ptr; ///////// 15 times ++*ptr
++*ptr; //
++*ptr; //
++*ptr; //
++*ptr; //
++*ptr; //
++*ptr; //
++*ptr; //

putchar(*ptr);

++ptr;

putchar(*ptr);

++*ptr;
++*ptr;
++*ptr;

putchar(*ptr);

--*ptr; //
--*ptr; //
--*ptr; //
--*ptr; //////// 6 times --*ptr
--*ptr; //
--*ptr; //

putchar(*ptr);

--*ptr; //
--*ptr; //
--*ptr; //
--*ptr; //
--*ptr; //////// 8 times --*ptr
--*ptr; //
--*ptr; //
--*ptr; //

putchar(*ptr);

++ptr;

++*ptr;
putchar(*ptr);



I guess you can work on it a little bit and run/debug it in Visual Studio and see what it does.

2006-12-07 19:32:17 · answer #1 · answered by Patient Zero 2 · 0 0

increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
jnz to next X
increment the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
decrement the pointer
decrement the pointer
decrement the pointer
decrement the byte at the pointer
X
increment the pointer
increment the byte at the pointer
increment the byte at the pointer
output the value of the byte at the pointer
increment the pointer
increment the byte at the pointer
output the value of the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
output the value of the byte at the pointer
output the value of the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
output the value of the byte at the pointer
increment the pointer
increment the byte at the pointer
increment the byte at the pointer
output the value of the byte at the pointer
decrement the pointer
decrement the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
output the value of the byte at the pointer
increment the pointer
output the value of the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
increment the byte at the pointer
output the value of the byte at the pointer
decrement the byte at the pointer
decrement the byte at the pointer
decrement the byte at the pointer
decrement the byte at the pointer
decrement the byte at the pointer
decrement the byte at the pointer
output the value of the byte at the pointer
decrement the byte at the pointer
decrement the byte at the pointer
decrement the byte at the pointer
decrement the byte at the pointer
decrement the byte at the pointer
decrement the byte at the pointer
decrement the byte at the pointer
decrement the byte at the pointer
output the value of the byte at the pointer
increment the pointer
increment the byte at the pointer
output the value of the byte at the pointer

2006-12-08 03:17:41 · answer #2 · answered by Raven 2 · 1 0

probably just an ASCII picture or something

2006-12-08 03:08:29 · answer #3 · answered by spiffo 3 · 0 0

fedest.com, questions and answers