J'ai besoin de traduire un programme en c.iles en c++ (je pense) mais je ne conais pas celui-ci.merci de votre aide!
public static void tabou;
{
for (int i=0;i<M;i++)
{
y[i]=alea.nextBoolean();
tabou[i]=-1;
}
int nbStable=0;
int it=0;
double obj=cout(y);
double best=obj;
while (nbStable < 500)
{
for(int=0;i<M;i++)
{
if (tabou[i]<it)
{
}
==>bestObj
}
if (bestObj <= old)
{
:w
obj = bestobj;
tabou[w] = it + tlen;
}
else
{
if (obj<best)
{
nbStable=0;
else nbstable++;
}
}
}
}