Rechercher une page de manuel
PGAGetSelectType
Langue: en
Version: 283869 (debian - 07/07/09)
Section: 3 (Bibliothèques de fonctions)
NAME
PGAGetSelectType - Returns the type of selection selectedINPUT PARAMETERS
- ctx
- - context variable
OUTPUT PARAMETERS
- none
SYNOPSIS
#include "pgapack.h" int PGAGetSelectType(ctx) PGAContext *ctx
LOCATION
select.cEXAMPLE
Example: PGAContext *ctx; int selecttype; : selecttype = PGAGetSelectType(ctx); switch (selecttype) { case PGA_SELECT_PROPORTIONAL: printf("Selection Type = PGA_SELECT_PROPORTIONAL); break; case PGA_SELECT_SUS: printf("Selection Type = PGA_SELECT_SUS); break; case PGA_SELECT_TOURNAMENT: printf("Selection Type = PGA_SELECT_TOURNAMENT); break; case PGA_SELECT_PTOURNAMENT: printf("Selection Type = PGA_SELECT_PTOURNAMENT); break; }
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre