C/C++
-

, , , -. .

𠠠
boolalpha boolalpha -
dec dec -
endl
ends ('\0')
flush
hex hex -
internal internal
left lft
noboolalpha boolalpha -
noshowbase showbase
noshowpoint showpoint
noshowpos showpos
noskipws skipws
nounitbuf unitbuf
nouppercase uppercase
oct oct -
resetiosflags
(fmtflags f)
, f -
right right
scientific scientific
setbase
(int base)
base
setfill
(int ch)
- ch
setiosflags
(fmtflags f)
, f -
setprecision
(int p)
( )
setw(int w) w
showbase showbase
showpoint showpoint
showpos showpos
skipws skipws
unitbuf unitbuf
uppercase uppercase
ws

, , <iomanip>.


, iostream, boolalpha. , boolalpha() noboolalpha(). , boolalpha true false. 1 0 . , , .

//     boolalpha.
#include 
using namespace std;
int main()
{
	bool b;

	cout << "   boolalpha: ";
	b = true;
	cout << b << " ";
	b = false;
	cout << b << endl;

	cout << "   boolalpha: ";
	b = true;
	cout << boolalpha << b << " ";
	b = false;
	cout << b << endl;

	cout << "  :
	cin >> boolalpha >> b;
	cout << "  " << b;

	return 0;
}

.

   boolalpha: 1 
   boolalpha: true false
  : true
  true

, boolalpha () true false. , boolalpha cin cout , , boolalpha , .







Нет комментариев.



Оставить комментарий:
Ваше Имя:
Email:
Антибот: *  
Ваш комментарий: