Simulation of DICE2007 in C/C++