a simple question

how to output a number with a format of 01, 02, 03, etc.?
thanks in advance.

cplusplusnew
1
2
cout << setfill('0') << setw(2);
cout << your_number;
Topic archived. No new replies allowed.