Actually, the number could be any variable. . .but if it happens to result in a normally single digit number and I want it displayed to 2 places on the left side of the decimla point.
Eg. . .I write a program that lets the user enter a number, the program will output the answer in minutes and seconds. . . so no matter what number the user puts in the display should show mm:ss. . . .where m=minutes and s= seconds. . .
If the user inputs 3 then the display should be 00:03 seconds alternatively if the user puts in 67 then the output should be 01:07 . . . .
You mean something like this? printf("%02d",var);
(No way I'm going to write that in iostreams.)
As for the sexagesimal display, you'll have to write that code yourself. It's not that hard, just a little fooling around with modulo and integral division.