Ch2_8 - Next Previous Section 2.8 Formatted Output Section 2.8 Formatted Output 11 Section 2.8 Formatted Output ® Formatting output ® type of

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Next Previous Section 2.8: Formatted Output Section 2.8: Formatted Output 11 Section 2.8: Formatted Output ® Formatting output ® type of number printed ® number of spaces within which output is printed ® decimal places displayed ® justification of output ® <iomanip> header library ® functions to control output format ® use in printing to screen or to files Next Previous Section 2.8: Formatted Output Section 2.8: Formatted Output 22 ® Printing tables with: ® uniform spacing of columns, ® right justify columns to align decimal points ® consistent display of decimal places ® appropriate number types 1 7.451 1.91e-002 2 18.231 6.54e+003 3 122.671 9.65e-004 ( b indicates a blank space) Formatted table output bbb bbbbb bbbb bbb bbbb bbbb bbb bbb bbbb Next Previous Section 2.8: Formatted Output Section 2.8: Formatted Output 33 Unformatted output example Unformatte d output statements Table heading unformatted_output.cp p Next Previous Section 2.8: Formatted Output Section 2.8: Formatted Output 44 Formatted output example...
View Full Document

This note was uploaded on 05/19/2008 for the course ENGR 25 taught by Professor All during the Spring '08 term at Lehigh University .

Page1 / 11

Ch2_8 - Next Previous Section 2.8 Formatted Output Section 2.8 Formatted Output 11 Section 2.8 Formatted Output ® Formatting output ® type of

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online