IOMANIP question

DarkKnight

Golden Member
Apr 21, 2001
1,197
0
0
I want to output some time in my project where the format is:

Minute : Sec . hundreths of a second

5:12.23


the thing is that the seconds and hundreths of a second must be 2 digits

5:00.00

instead of

5:0.0

is there anyway i can use IOMANIP to get the the outputs right when seconds and hundreths of a second are less than 10?
 

Isaiah

Senior member
May 31, 2000
453
0
0
Try using something like this

How are you outputting to the screen? cout, streams? or with printf?