home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QBasic & Borland Pascal & C
/
Delphi5.iso
/
C
/
BC_502
/
STDLIB.PAK
/
BITSET.CPP
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1997-05-06
|
219 b
|
15 lines
#include <bitset>
#include <iostream.h>
using namespace std;
int main ()
{
bitset<8> b;
b |= 5;
#ifndef RWSTD_NO_NONTYPE_ARGS
cout << b << endl; // results in 00000101
#endif
return 0;
}