GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: Add Line Numbers


finished silly code by Merlin
#include <iostream>
#include <tchar.h>
typedef unsigned long aa; typedef unsigned char ab; typedef unsigned short ac;
#define w(x,y,z) ((aa)((ab)(x) | ((ab)(y) << 8) | ((ab)(z) << 16)))
#define z(rgb) ((ab((rgb) >> 16)))
#define y(rgb) ((ab)(((ac)(rgb)) >> 8))
#define x(rgb) ((ab)(rgb))
#define s(a,b,c) printf("red: %i\nblue: %i\ngreen: %i\n", a,b,c);
#define m(j,k) int _tmain(int j, _TCHAR* k[])
#define f(ax) system(ax)
#define e() return 0

m(argc, argv) {    int n=w(0, 118, 163);s(x(n),y(n),z(n));f("pause");e(); }