#include <stdio.h>

#define MAX_JUG 10
#define MAX_CAR 20

typedef struct{
	int dia;
	int mes;
	int anyo;
}tfecha;

typedef struct{
	char nombre[MAX_CAR]; //Nombre del jugador
	int edad; //Edad del jugador
	int goles; //Goles marcados por jugador
	tfecha fecha; //Fecha de incorporacion al equipo
}tjugador;

typedef struct{
	char equipo[MAX_CAR]; //Nombre del equipo
	int num; //Numero de jugadores actuales
	tjugador lista[MAX_JUG]; //Lista jugadores del equipo
}tequipo;

void mostrar_fecha(tfecha f) {
	//TODO
}

void mostrar_jugador(tjugador j) {
	//TODO
}

void mostrar_equipo(tequipo e) {
	//TODO
}

void leer_fecha(tfecha *f) {
	//TODO
}

void leer_jugador(tjugador *j) {
	//TODO
}

void leer_equipo(tequipo *e) {
	//TODO
}

main() {
	tfecha f = {1,7,1998};
	tjugador j = {"Xavi.",32,13,{1,7,1998}};
	tequipo eq = {"Barza.", 3, {
		{"Xavi.",32,13,{1,7,1998}},
		{"Messi.",24,58,{1,7,2004}},
		{"Pujol.",33,3,{1,7,1999}}}};

//	leer_fecha(&f);
//	mostrar_fecha(f);
//	leer_jugador(&j);
//	mostrar_jugador(j);

	printf("MUESTRO EQUIPO:\n");
	mostrar_equipo(eq);
	printf("LEO EQUIPO CON EL MISMO FORMATO:\n");
	leer_equipo(&eq);
	printf("MUESTRO EQUIPO:\n");
	mostrar_equipo(eq);
}

