#include using namespace std; const int BYTESIZE=8; //rules to select bytes: //1.find max num from specified number sequence //2.num of bytes = (max_num/8)+1 void setbit(char* p, int posi) { int i=0; for(i=0;i