title: How can I pad an int with leading zeros when using cout << operator?
body: <p>I want <code>cout</code> to output an int with leading zeros, so the value <code>1</code> would be printed as <code>001</code> and the value <code>25</code> printed as <code>025</code>. How can I do this?</p>