bvec1.cpp

We use cookies. Read the Privacy and Cookie Policy

bvec1.cpp

#include ‹iostream.h›

#include ‹stl.h›

int main() {

 bit_vector b(3);

 for (int i = 0; i ‹ b.size(); i++) cout ‹‹ b[i];

 cout ‹‹ endl;

 b[0] = b[2] = 1;

 for (i = 0; i ‹ b.size(); i++) cout ‹‹ b[i];

 cout ‹‹ endl;

 return 0;

}