m2.enlarge-your-data/src/rle1/bittest.cpp
2005-10-30 23:04:37 +00:00

15 lines
327 B
C++

#include <stdio.h>
#include <stdlib.h>
#include <eyd.hh>
int main(int argc, char ** argv){
printf("hop\n");
int size = atoi(argv[1]);
int pos = atoi(argv[2]);
EydLib::BitGroup bg(size);
printf("bits = %s\n", bg.toString().c_str());
bg.setBitAt(pos,1);
//bg.setBit(2,1);
printf("bits = %s\n", bg.toString().c_str());
}