, ios, , , . , , + + . , ios -.
ios width. : int ios:. w idth () ;
int ios:: width (int) .
:
width .
width .
, fill. (, ).
, width .
width ( ).
width .
:
cin. width (MAX_LEN);
cout. width (4);
ios::fill(). .
char ios:: fill (char) .
.
: cout. fill ( * );
()
ios:: precision () , .
int ios:: precision ()- .
int ios:: precision (int) .
:
6 .
scientific fixed, precision , .
, precision .
:
cout. precision (4); // 4 .
cout. setf (ios:: fixed, ios:: floatfield); // fixed.
cout. precision (4); //4 // .
+ + . , . , long. , , setf (). .
long ios:: setf (long);
, , .
long ios:: unsetf (long) , ; .
|
|
, .
,
cout. setf (ios:: showbase | ios:: hex);
cout. seft (ios:: fixed);
ios:: right .
ios:: dec, ios:: oct, ios:: hex 10, 8 16 .
ios:: showbase (Ø 16- Ø 8-).
ios:: fixed, ios:: scientific .
ios:: uppercase F 16- .
25.3 .
, . .
/.
setw, , , .
, , . :
endl (\ n)
flush. .
nds (\ Ø). .
flush .
dec, oct, hex 10, 8, 16 .
:
cout <<hex x = << hex << x << \ n;
16- .
cout <<oct x = << oct << x << \ n;
8- .
char name [2Ø];
cout << <<endl;
cin >> name;
endl.