a) you mate with a very smart person, mate your baby with another genious, and so forth. Chances are that in aprox 100 years you will have an smart enough descendant that will be able to write a program that will be able to generate what you need simply by asking it. NOTE: you will have to somehow obtain that program.
b)You try and generate it yourself
read the general tutorial, form an dea of how you calculate it, try and implement that in C++
chill out Gregor, however, in general you are absolutely right...
@gosego - read first few chapters in this tutorial: http://cplusplus.com/doc/tutorial/
I'm sure you will be able to write it by yourself, good luck :-)
lol considering he asked for something relatively easy, im sure someone on these forums would be willing to scam hi--- i mean... sell him their reasonably priced labor on such a complicated task.
i get 10% for backing whoever does this on the "reasonably priced" part :)