cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
a simple question
a simple question
Apr 29, 2009 at 8:58am UTC
cplusplusnew
(4)
how to output a number with a format of 01, 02, 03, etc.?
thanks in advance.
cplusplusnew
Apr 29, 2009 at 10:17am UTC
Disch
(13742)
1
2
cout << setfill(
'0'
) << setw(2); cout << your_number;
Topic archived. No new replies allowed.