bvec1.cpp
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;
}
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;
}