65,187
社区成员




///*
char *bmap = new char[HASH_SIZE];
memset(bmap, 0, HASH_SIZE);
int nCount = 0;
while(infile.good())
{
bmap[nCount++] = infile.get();
if(infile.fail())
{
PRINT("reading bmap failed!\n");
}
else if(infile.bad())
{
PRINT("reading bad!\n");
}
if(0 <= nCount)
{
infile.get(); //read a '\n'
break;
}
}
delete bmap;
//*/
/*
string bloom;
getline(infile, bloom);
//infile.get.getline();
if(HASH_SIZE != bloom.length())
{
PRINT("the memento file %d or HASH_SIZE %d has been changed!!!\n", bloom.length(), HASH_SIZE);
exit(0);
}
*/
/*
char *bmap = new char[HASH_SIZE];
memset(bmap, 0, HASH_SIZE);
infile.read(bmap, HASH_SIZE);
if(HASH_SIZE != infile.gcount())
{
PRINT("the memento file %d or HASH_SIZE %d has been changed!!!\n", infile.gcount(), HASH_SIZE);
exit(0);
}
delete bmap;
//*/