so i know the code is correct
, "", . . :
for(unsigned int i=0;i<GPNO;i++)
for(unsigned int j=i+1;j<GPNO;j++)
if((gp[i]->fitness)>(gp[j]->fitness))
{
gp[i]->mycopy(tmp);
gp[j]->mycopy(gp[i]);
tmp->mycopy(gp[j]);
}
for(i=1;i<=no;i++)
{
gp[i]->mycopy(gp[GPNO-i]);
}
for i . , VC6, .
, pow. ( ), :
pf[i].frq+=(unsigned int)pow(2,2*PF-1);
, pow . , . :
pf[i].frq+=(unsigned int)pow(2.0,2*PF-1);
, .
:
#include "stdlib.h"
#include "conio.h"
#include "math.h"
. , , . .