结构体调用的问题!!!!
struct individual
{
char chrom[CSIZE+1];
int p[3];
double fitness;
} ;
struct individual population[SIZE];
调用函数是:
LSelectionOperator(population);
//对上一代种群进行交叉变异生成下一代种群
OCrossoverOperator(population); //单点交叉
MutationOperator(population) ;
最后程序出错如下:
D:\GATest2(12)\GA.cpp(489) : error C2660: 'LSelectionOperator' : function does not take 1 parameters
D:\GATest2(12)\GA.cpp(494) : error C2660: 'OCrossoverOperator' : function does not take 1 parameters
D:\GATest2(12)\GA.cpp(495) : error C2660: 'MutationOperator' : function does not take 1 parameters
谁能帮我看看这是怎么回事????