Upon looking at the Brainf**k language, I decided to make a BASIC version of it. When it's run, however, an error # 501 greets me. Also, the program is hidden from DoorsCS.
Here's the first couple lines of code:

Code:

Ans->Str1
ClrHome
SetUpEditor L1
1->L1(1
1->B
1->O
1->P

Now, I'm certain that NONE of the code gets run. I tried setting String 1 to "2", then ran the line:

Code:

">++++.>>-.":prgmProgram

It gave me the error code, and when I checked String1, it was still equal to "2".

Why is this happening? Did I do some sort of unkosher code? Is Doors interfering with it?
First of all, DCS will not recognize a program if Ans is the first character. Adding a new line will (hopefully) solve the problem.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement