I want cout to output an int with leading zeros, so the value 1 would be printed as 001 and the value 25 printed as 025. How can I do this?

7 Answers
7

Leave a Reply

Your email address will not be published. Required fields are marked *