Using Manipulators to Format I/O : cout flag status « Console « C++

Home
C++
1.Bitset
2.Class
3.Console
4.Data Structure
5.Data Type
6.Deque
7.Development
8.File
9.Function
10.Generic
11.Language
12.List
13.Map Multimap
14.Overload
15.Pointer
16.Qt
17.Queue Stack
18.Set Multiset
19.STL Algorithms Binary search
20.STL Algorithms Heap
21.STL Algorithms Helper
22.STL Algorithms Iterator
23.STL Algorithms Merge
24.STL Algorithms Min Max
25.STL Algorithms Modifying sequence operations
26.STL Algorithms Non modifying sequence operations
27.STL Algorithms Sorting
28.STL Basics
29.String
30.Valarray
31.Vector
C / ANSI-C
C Tutorial
C++ Tutorial
Visual C++ .NET
C++ » Console » cout flag statusScreenshots 
Using Manipulators to Format I/O
Using Manipulators to Format I/O



/*
Manipulator       Purpose                                  Input/Output
-----------------+----------------------------------------+---------------
boolalpha         Turns on boolapha flag.                  Input/Output

dec               Turns on dec flag.                       Input/Output

endl              Output a newline character and           Output 
                  flush the stream.

ends              Output a null.                           Output

fixed             Turns on fixed flag.                     Output

flush             Flush a stream.                          Output

hex               Turns on hex flag.                       Input/Output

internal          Turns on internal flag.                  Output

left              Turns on left flag.                      Output

nobooalpha        Turns off boolalpha flag.                Input/Output

noshowbase        Turns off showbase flag.                 Output

noshowpoint       Turns off showpoint flag.                Output

noshowpos         Turns off showpos flag.                  Output

noskipws          Turns off skipws flag.                   Input

nounitbuf         Turns off unitbuf flag.                  Output

nouppercase       Turns off uppercase flag.                Output

oct               Turns on oct flag.                       Input/Output

resetiosflags     Turn off the flags specified in f.       Input/Output
(fmtflags f)

right             Turns on right flag.                     Output

scientific        Turns on scientific flag.                Output

setbase(int base) Set the number base to base.             Input/Output

setfill(int ch)   Set the fill character to ch.            Output

setiosflags       Turn on the flags specified in f.        Input/output
(fmtflags f)

setprecision      Set the number of digits of precision.   Output
(int p)

setw(int w)       Set the field width to w.                Output

showbase          Turns on showbase flag.                  Output

showpoint         Turns on showpoint flag.                 Output

showpos           Turns on showpos flag.                   Output

skipws            Turns on skipws flag.                    Input

unitbuf           Turns on unitbuf flag.                   Output

uppercase         Turns on uppercase flag.                 Output

ws                Skip leading white space.                Input

*/


           
       
Related examples in the same category
1.cout flags: showpoint, showposcout flags: showpoint, showpos
2.Store cout flags, set to new ones and restoreStore cout flags, set to new ones and restore
3.Displays the status of the format flags.Displays the status of the format flags.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.