cout<< number for example 00222

Plz can somebody tell how to cout<< number for example this 00222, if i want to see 00 too not only 222?
You can use manipulators ( setw ant setfill )
http://www.cplusplus.com/reference/iostream/manipulators/
Tnx man :)
Topic archived. No new replies allowed.