a simple question
Apr 29, 2009 at 8:58am
how to output a number with a format of 01, 02, 03, etc.?
thanks in advance.
cplusplusnew
Apr 29, 2009 at 10:17am
1 2
|
cout << setfill('0') << setw(2);
cout << your_number;
|
Topic archived. No new replies allowed.