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

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. Queue Stack
17. Set Multiset
18. STL Algorithms Binary search
19. STL Algorithms Heap
20. STL Algorithms Helper
21. STL Algorithms Iterator
22. STL Algorithms Merge
23. STL Algorithms Min Max
24. STL Algorithms Modifying sequence operations
25. STL Algorithms Non modifying sequence operations
26. STL Algorithms Sorting
27. STL Basics
28. String
29. Valarray
30. Vector
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++ Tutorial
PHP
Python
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
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.
w_w__w.___ja_v__a2_s.__c_o___m___ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.