Last active
December 21, 2015 18:38
-
-
Save degarashi/6348325 to your computer and use it in GitHub Desktop.
Hello World
はろーわーるど
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 <iostream> | |
enum NUM { ZERO, ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT }; | |
char text[EIGHT*EIGHT] = {}; | |
int main(int argc, char* args[]) { | |
char *ptrA = text, | |
*ptrB = ptrA; | |
++ptrB; | |
*ptrA = EIGHT * EIGHT + EIGHT; | |
*ptrB++ = *ptrA + FOUR * SEVEN + ONE; ++ptrA; | |
*ptrB++ = *ptrA + SEVEN; ++ptrA; | |
*ptrB++ = *ptrA; ++ptrA; | |
*ptrB++ = *ptrA + THREE; ++ptrA; | |
*ptrB++ = ONE << FIVE; ++ptrA; | |
*ptrB++ = EIGHT*(EIGHT+THREE) - ONE; ++ptrA; | |
*ptrB++ = *ptrA + FOUR*SIX; ++ptrA; | |
*ptrB++ = *ptrA + THREE; ++ptrA; | |
*ptrB++ = *ptrA - SIX; ++ptrA; | |
*ptrB++ = *ptrA - EIGHT; | |
std::cout << text << std::endl; | |
return argc^argc; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment