Pages

Tuesday, May 3, 2011

The answer is 42 - What is the Question?

The answer to the ultimate question of Life, the Universe, and Everything is 42, but what is the Ultimate Question. Ask D. A. if the program is still running?

Program Code Block:
#include "douglas.h"
using namespace adams;
int main()
{
void theUltimateQuestion(int Earth, meaning Life, bang Universe, mouse Everything);
int answer = 42;
int secret;
int magic(int &secret);
answer  = *secret;
... // calculations performed by mouse 
cout << "The meaning of life is " << answer << \n; 
return answer;
}

Real programmers don't comment their code. What was hard to write in the first place should be just as hard to understand later on.

1 comment:

  1. I guess the program is no longer running cause I still don't know the question and I really don't understand all the Program Block stuff above!!
    This is way too hard this early in the morning......have a nice day!

    ReplyDelete