Output
Fri Apr 20 16:00:00 2005 - 31 hexadecimal: 1f
Hurrah!
So, I hope we've demystified IOStreams a bit and shown, initialisation order not withstanding, that a cusomt IOStream is easy.
And now we've done the initialisation order thing, it's a solved problem :)
What else might you use a custom stream for?