Brain Fuck Really fixed by smkt

#define B break\x0d
#define C case\x0d
#include<stdio.h>\x0d
main(){int A[99],l[9],a=2,L=0,p=0,v=0,P[999],i;memset(A,0,99);while(!feof(stdin))P[v++]=fgetc(stdin);while(p<v){\x0d
i=P[p++];switch(i){C'>':a++;B;C'<':a--;B;C'+':A[a]++;B;C'-':A[a]--;B;C'.':putchar(A[a]);B;C'[':\x0d
if(A[a])l[L++]=p;else while(P[p++]-']'&p<v);B;C']':A[a]?p=l[L-1]:L--;}}}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page