4 typedef struct _jugador jugador
;
12 typedef struct _futbol futbol
;
19 int anotaciones_favor
;
20 int anotaciones_contra
;
24 typedef struct _basket basket
;
31 int anotaciones_favor
;
32 int anotaciones_contra
;
36 get_futbol_equipo(futbol
*equipo
)
38 printf("[Nombre equipo],[victorias],[derrotas],[goles a favor]"
39 ",[goles en contra]");
40 scanf("%s,%d,%d,%d,%d%*c"
44 , &equipo
->anotaciones_favor
45 , &equipo
->anotaciones_contra
47 printf("[Nombre jugador estrella] : ");
49 , equipo
->estrella
.nombre
56 get_futbol(futbol
**equipos
)
59 get_futbol_equipo(*equipos
);
69 printf("Numero de equipos futbol : ");
71 futbol
**equipos_futbol
= malloc(sizeof(void *)*(LIM
+1));
74 *equipos_futbol
= malloc(sizeof(futbol
));
75 equipos_futbol
[LIM
] = NULL
;
77 printf("Numero de equipos basket : ");
80 basket
**equipos_basket
= malloc(sizeof(basket
)*(LIM
+1));
82 *equipos_basket
= malloc(sizeof(basket
));
83 equipos_basket
[LIM
] = NULL
;
85 get_futbol(equipos_futbol
);
87 //get(equipos_basket);