'Why does every brainf*ck interpreter (except the web ones) show these characters? (♀♂)
So I tried doing my own Brainf*ck interpreter in C++, and everything was going fine until I tried this program:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++[.-]
It just goes to the letter C and loops printing each character until going to 0.
I looked at other programs to see if they had the same thing; a Python module that interprets BF and a GitHub project also in C++ and each time the two other programs as well as mine outputted that:
♀♂A@?>=<;:9876543210/.-,+*)('&%$#"! ▼▲↔∟←→↓↑↨▬§¶‼↕◄►☼♫ ♠♣♦♥☻☺
It doesn't print the C and B but instead these symbols: "♀♂". How could I fix that?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
