Search:
Forum
General C++ Programming
cout number 1 as 01
cout number 1 as 01
Oct 21, 2010 at 2:08pm UTC
closed account (
STR9GNh0
)
how do i go about that ?
i know can use setw but i would prefer if the 01 can slowly increment all the way till like 11, 22, 54 and etc etc..
Oct 21, 2010 at 2:21pm UTC
Mike Sandy
(30)
You need to combine setw with setfill.Check out the iostream reference on this site.Cheers.
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs