11.07.2015 Views

tYSR20

tYSR20

tYSR20

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 24: Using Stream I/O 327Manipulator Member Function Descriptionoct flags(8) Set radix to 8setfill(c) fill(c) Set the fill character to csetprecision(c) precision(c) Set display precision to csetw(n) width(n) Set width of field to n characters**This returns to its default value after the next field is output.Watch out for the width parameter (width() function and setw() manipulator).Most parameters retain their value until they are specifically reset by asubsequent call, but the width parameter does not. The width parameter isreset to its default value as soon as the next output is performed. For example,you might expect the following to produce two eight-character integers:#include #include void fn(){cout

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!