Last active
August 29, 2015 14:17
-
-
Save SeokminHong/34ad5450693e9459869e to your computer and use it in GitHub Desktop.
This file contains 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> | |
#define sun int a[1000], *p=a; int main() { | |
#define mercury p++; // > command | |
#define venus p--; // < command | |
#define earth (*p)++; // + command | |
#define mars (*p)--; // - command | |
#define jupiter putchar(*p); // . command | |
#define saturn *p=getchar(); // , command | |
#define uranus while(*p){ // [ command | |
#define neptune if(!*p)break;} // ] command | |
#define pluto } | |
//print "Hello, universe!" | |
sun | |
earth earth earth earth earth earth earth earth earth earth uranus mercury earth earth earth earth earth earth earth mercury earth earth earth earth earth earth earth earth earth earth mercury earth earth earth earth earth earth earth earth earth earth earth mercury earth earth earth earth mercury earth earth earth mercury earth venus venus venus venus venus venus mars neptune mercury earth earth jupiter mercury earth jupiter earth earth earth earth earth earth earth jupiter jupiter mercury earth jupiter mercury earth earth earth earth jupiter mercury earth earth jupiter venus venus earth earth earth earth earth earth jupiter venus earth earth jupiter mars mars mars mars mars jupiter mercury earth jupiter venus mars mars mars mars jupiter mercury mars mars mars mars jupiter earth jupiter venus jupiter mercury mercury mercury earth jupiter mercury jupiter | |
pluto |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment