convert ANSI C to C#

V

valko

thank you Iain for your kind response, it is some Genetic Algorithm, it has
some structures like that one for chromosome:
typedef struct{
allele_t *allele; fitness_t *fitness;}chromosome_t; and that one for
Population:typedef struct { int nochromosome; chromosome_t *chromosome;
int chromosome_length; allele_t minimum_allele_value; allele_t
maximum_allele_value; fitness_t *minimum_fitness; fitness_t
*total_fitness; chromosome_t *fittest_chromosome; chromosome_t
*fittest_acceptable_chromosome;}population_t;and some action like this
one:/**********************************************************************
* crossover
**********************************************************************/
inline int crossover( chromosome_t *young_a, chromosome_t *young_b,
const chromosome_t *male, const chromosome_t *female, const int
chromosome_length);cheersValko
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top