Aug 8, 2012 at 2:45pm
Use sprintf() if you want to output to a string instead of standard output, like printf() does.
Aug 8, 2012 at 2:47pm
Ahhh, either of those should work. Thanks a lot.
Aug 8, 2012 at 2:57pm
cout<<setw(2)<<setfill('0');
should do.