This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <gmp.h> | |
| char* calculatePi(unsigned long digits); | |
| int main() | |
| { | |
| const unsigned long piDigits = 500; | |
| char* pi = calculatePi(piDigits); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <string.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <limits.h> | |
| #define STACK_MAX 100 | |
| #define TAPE_MAX 30000 | |
| #define ECHO_MESSAGES 1 | |
| enum MESSAGE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <stack> | |
| int main() | |
| { | |
| std::string program; | |
| unsigned char tape[30000] = {0}; | |
| unsigned char* ptr = tape; |
NewerOlder