Void Fitness (DynamicArray
{
Chorm. Length=popSize;
for (int i=0; i
Float sum=0;
For (int j=0; J
The sum +=chorm [I] [j] * (volume [j]);
}
}
Function call void Fitness (chrom, Fitness, objectVolume objectValue, knapsackVolume, objectNum, popSize);
The chrom is declared in the header file DynamicArray< dynamic array; DynamicArray
Error [c + + Error] Unit1. CPP (250) : E2451 Undefined symbol 'chrom'
CodePudding user response:
Oh, chrom / chorm try again and again, can use!