array calling, what's wrong?
hi all
how are you?
can any one tell me what is wrong about the following code, and how to correct it?
thank you
#include<iostream>
#include<stdlib.h>
#define cromo_len 13
#define pop_sz 20
void main()
{
float pop_arr[pop_sz][cromo_len];
int i;
.
.
.
.
calc_fit(pop_arr
);
}
float calc_fit(float arr[])
{
.
.
.
.
return arr[cromo_len];
}

