Skip to content

Instantly share code, notes, and snippets.

@SilverRainZ
Last active August 29, 2015 14:10
Show Gist options
  • Save SilverRainZ/34162a75b400139517a2 to your computer and use it in GitHub Desktop.
Save SilverRainZ/34162a75b400139517a2 to your computer and use it in GitHub Desktop.
HMT Happy Birthday.
#include <stdio.h>
#include <stdlib.h>
#define _c '*'
#define _s ' '
#define _n '\n'
#define ____ &
#define _______ putchar
const int _____ = 8;
#define ___ for (int __ = 0; __ < _____; __++)
#define ______(a,b,c) if a b; else c;
const int _[_____] = { 0x8130cff, 0x8129499, 0x812e418, 0xff24418, 0x8120418, 0x8120418, 0x8120418, 0x8120418 };
int main()
{
___{
______(((_[__] ____ 0x8000000) != 0), _______(_c), _______(_s));
______(((_[__] ____ 0x4000000) != 0), _______(_c), _______(_s));
______(((_[__] ____ 0x2000000) != 0), _______(_c), _______(_s));
______(((_[__] ____ 0x1000000) != 0), _______(_c), _______(_s));
______(((_[__] ____ 0x0800000) != 0), _______(_c), _______(_s));
______(((_[__] ____ 0x0400000) != 0), _______(_c), _______(_s));
______(((_[__] ____ 0x0200000) != 0), _______(_c), _______(_s));
______(((_[__] ____ 0x0100000) != 0), _______(_c), _______(_s));
______(((_[__] ____ 0x0080000) != 0), _______(_c), _______(_s));
______(((_[__] ____ 0x0040000) != 0), _______(_c), _______(_s));
______(((_[__] ____ 0x0020000) != 0), _______(_c), _______(_s));
______(((_[__] ____ 0x0010000) != 0), _______(_c), _______(_s));
______(((_[__] ____ 0x0008000) != 0), _______(_c), _______(_s));
______(((_[__] ____ 0x0004000) != 0), _______(_c), _______(_s));
______(((_[__] ____ 0x0002000) != 0), _______(_c), _______(_s));
______(((_[__] ____ 0x0001000) != 0), _______(_c), _______(_s));
______(((_[__] ____ 0x0000800) != 0), _______(_c), _______(_s));
______(((_[__] ____ 0x0000400) != 0), _______(_c), _______(_s));
______(((_[__] ____ 0x0000200) != 0), _______(_c), _______(_s));
______(((_[__] ____ 0x0000100) != 0), _______(_c), _______(_s));
______(((_[__] ____ 0x0000080) != 0), _______(_c), _______(_s));
______(((_[__] ____ 0x0000040) != 0), _______(_c), _______(_s));
______(((_[__] ____ 0x0000020) != 0), _______(_c), _______(_s));
______(((_[__] ____ 0x0000010) != 0), _______(_c), _______(_s));
______(((_[__] ____ 0x0000008) != 0), _______(_c), _______(_s));
______(((_[__] ____ 0x0000004) != 0), _______(_c), _______(_s));
______(((_[__] ____ 0x0000002) != 0), _______(_c), _______(_s));
______(((_[__] ____ 0x0000001) != 0), _______(_c), _______(_s));
_______(_n);
}
system("pause");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment