Jan 23 - Cout<<setfill(0); //valid...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Jan 23, 2006, ECE106 Scopes I/O X=503 #include <iomanip> Cout<<setw(8)<<x<<endl; //setw active only for the next print //” 503” Cout<<x<<endl; // “503”
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Cout&lt;&lt;setfill(0); //valid until reset Cout&lt;&lt;setw(8)&lt;&lt;x&lt;&lt;endl; //00000503 Cout&lt;&lt;setprecision(2)&lt;&lt;432.3434&lt;&lt;endl //432.34...
View Full Document

Ask a homework question - tutors are online