Este es el comando PGAGetCharacterAllele que se puede ejecutar en el proveedor de alojamiento gratuito de OnWorks utilizando una de nuestras múltiples estaciones de trabajo en línea gratuitas, como Ubuntu Online, Fedora Online, emulador en línea de Windows o emulador en línea de MAC OS.
PROGRAMA:
NOMBRE
PGAGetCharacterAllele: devuelve el valor del alelo del carácter en un PGA_DATATYPE_CHARACTER
cadena
ENTRADA PARÁMETROS
ctx - variable de contexto
p - índice de cadena
pop - constante simbólica de la población en la que se encuentra la cadena
i - índice de alelos
SALIDA PARÁMETROS
ninguna
SINOPSIS
#include "pgapack.h"
char PGAGetCharacterAllele (ctx, p, pop, i)
PGAContext * ctx
p int
pop int
ent i
char.c
EJEMPLO
Ejemplo:
Copia los alelos del miembro p en PGA_OLDPOP al miembro q en PGA_NEWPOP.
Supone que las cuerdas tienen la misma longitud.
PGAContext * ctx;
int p, q, yo;
:
para (i = PGAGetStringLength (ctx, p, PGA_NEWPOP) -1; i> = 0; i--)
PGASetCharacterAllele (ctx, q, PGA_NEWPOP, i,
PGAGetCharacterAllele (ctx, p, PGA_OLDPOP, i))
05/01/95 PGAGetCharacterAlelo(1)
Use PGAGetCharacterAllele en línea usando los servicios de onworks.net