In this game, post confusing or hard to understand code, and the reader will try to figure out how it works.
I will start with a small C++ program that uses #define's.
#include <iostream>
#include <string>
using namespace std;
#define FUNCTION(?????) ??????
FUNCTION(inline, int, hello,
for(int d = 0; d < i; d++) {
cout << "\nhello " << t << d << "\n";
}
return i;
);
int main() {
return hello(5, "world ");
}
The output of the program on Linux is:
hello world 0
hello world 1
hello world 2
hello world 3
hello world 4
Process returned 5 (0x5)
Anyone who guesses what the definition of FUNCTION() is, gets a cookie!