You could find the complete example regarding the 36,000 throws of
a pair of dice, illustrating, Classess, friend functions, makefiles, public/private
members, etc. (material from PIC 10A)
Dice Example.
In addition, we have the the
HTML documentations for this software package
obtained by using (one of the many) freely available softwares for automated
source code HTML description:
DOC++.