I got this code from a book. Can you tell me what OUL means. Is it secret code for something???? Its not defined anywhere. I was wondering if its something from standard library... Thanks.
StatisticsMean::StatisticsMean: RunningSum(0.0), PathsDone(OUL)
This is the constructor for the StatisticsMean class. It sets as RunningSum the value 0.0 and as PathsDone probably an unsigned long 0 (0UL). At least that is what I understand from the preview of the book I had because it uses the PathsDone value just as a counter. So you can just use there PathsDone(0).
It is from book "C++ Design Patterns and Derivatives Pricing" By Mark S. Joshi. I found it as a preview for Google books.
Ok, I found something.
This is from the help of VC++ Express
C++ Integer Constants
To specify an unsigned type, use either the u or U suffix. To specify a long type, use either the l or L suffix. For example:
unsigned uVal = 328u; // Unsigned value
long lVal = 0x7FFFFFL; // Long value specified as hex constant
unsigned long ulVal = 0776745ul; // Unsigned long value
So, the 0UL (Zero-U-L) means the unsigned long with value 0.