Friday, July 31, 2009

In C++ programming what dose function setw() do in this library <iomainp>??

That can be used to set the width precision of your output.





For example





cout %26lt;%26lt; setw(8) %26lt;%26lt; i;





would print i with an output width of 8 spaces.


No comments:

Post a Comment