std::string GetBest() { std::string the_best(population[best_index]->genes); the_best += "\0"; return the_best; }
int main() { float student_subject[10][5]; int i,j; printf("please input your grades:"); for(i=0;i<10;i++) {for(j=0;j<5;j++) scanf("%f",&student_subject[i][j]); printf("\n"); } student_average(student_subject); subject_average(student_subject); the_best(student_subject); student_variance(student_subject); return 0; }