*** empty log message ***

This commit is contained in:
jiri
2006-03-30 19:16:40 +00:00
parent a5015f5c3c
commit 8f8b5b855f
2 changed files with 51 additions and 16 deletions

17
bitvector.cc Normal file
View File

@@ -0,0 +1,17 @@
#include "bitvector.h"
//inefficient I/O operators
ostream & operator<<(ostream &s, const bitvector &x)
{
for(unsigned int i=0; i<x.size(); ++i) s<< x[i];
return s;
}
istream & operator>>(istream &s, bitvector &x)
{
bool a;
for(unsigned int i=0; i<x.size(); ++i) {s >>a; x.assign(i,a);}
return s;
}