This is the wrong way to read a file:
while (!fin.eof( ))
{
}
Standard template:
while(getlineOrValues)
{
}
, , , :
while(fin>>c_tmp>>gamma_tmp)
{
// loop only eneterd if both c_tmp AND gamma_tmp
// can be retrieved from the file.
cs_bit.push_back(c_tmp);
gammas_bit.push_back(gamma_tmp);
nb_try++;
}
, EOF , . , , EOF, . , , , EOF - , . c_tmp, EOF , .
, while. . (, while), , bool ( void *, ).