Home
C++
Bitset
Class
Console
Data Structure
Data Type
Deque
Development
File
Function
Generic
Language
List
Map Multimap
Overload
Pointer
Qt
Queue Stack
Set Multiset
STL Algorithms Binary search
STL Algorithms Heap
STL Algorithms Helper
STL Algorithms Iterator
STL Algorithms Merge
STL Algorithms Min Max
STL Algorithms Modifying sequence operations
STL Algorithms Non modifying sequence operations
STL Algorithms Sorting
STL Basics
String
Valarray
Vector
cout setf « Console « C++
C++
Console
cout setf
1.
cout: how to display float number, ios::showpoint, ios::showpos
2.
You can OR together two or more flags: ios::uppercase | ios::scientific
3.
cout.setf(ios::showpos | ios::showpoint) and cout.setf(ios::showpoint, ios::showpos | ios::showpoint)
4.
Set cout: setf(ios::showpoint | ios::showpos, ios::showpoint)
5.
cout.setf(ios::hex)
6.
cout.setf(ios::showbase)
7.
cout.setf(ios::uppercase | ios::scientific)
8.
Set cout: hex, basefield, setf(ios::hex, ios::basefield)