Created
March 8, 2012 12:15
-
-
Save fern4lvarez/2000748 to your computer and use it in GitHub Desktop.
Convertir géneros de una película en un reparto de temperamentos.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PeliGeneros p; | |
int numGen=p.getCantidadGeneros(); | |
Generos g; | |
for (int i=0; i<numGen; i++){ | |
g=p.getGenero(i); | |
art=art+p.getCantidadGenero(g)*tabla.getValorTabla(g, Temperamento.Artesano); | |
ide=ide+p.getCantidadGenero(g)*tabla.getValorTabla(g, Temperamento.Idealista); | |
gua=gua+p.getCantidadGenero(g)*tabla.getValorTabla(g, Temperamento.Guardian); | |
rac=rac+p.getCantidadGenero(g)*tabla.getValorTabla(g, Temperamento.Racional); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment