cout number 1 as 01

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..
You need to combine setw with setfill.Check out the iostream reference on this site.Cheers.
Topic archived. No new replies allowed.