15 lines
327 B
C++
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());
|
|
}
|