Documente Academic
Documente Profesional
Documente Cultură
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <conio.h>
#include <ctype.h>
int anio;
int mes;
int dia;
} fechaD;
char Nombre_Banda[64];
char Origen[64];
char Integrantes[8];
char Color_Oficial[64];
char Agencia[64];
char Solistas[16];
fechaD fechaD_lad;
} Bandas;
char Nombre_artistico[64];
char Nombre_real[64];
char Apodos[64];
char Lugar_Nacimiento[64];
char Estatura[16];
char Peso[16];
char Tipo_Sangre[16];
char Signo_Zodiacal[64];
char Signo_Zodiacal_Chino[64];
char Agencia[64];
char GrupoMusical[64];
}artista;
char Titulo_Albun[64];
char Artista[64];
char Genero[64];
char Duracion[16];
char Ranking[16];
char AgenciaA[64];
}Album;
typedef struct _FechaL
int anioL;
int mesL;
int diaL;
} fechaL;
char opc;
printf("\n4. SALIR");
opc=getche();
return opc;
char menuAlbums();
char opc1;
printf("\n6. SALIR");
opc1=getche();
return opc1;
char menuBandas();
char opc2;
printf("\n6. SALIR");
opc2=getche();
return opc2;
char menuArtistas();
char opc3;
printf("\n6. INGRESAR NUEVO ARTISTA");
printf("\n6. SALIR");
opc3=getche();
return opc3;
int main()
album *registros;
char *opciones[]={"buscar","actualizar","eliminar"};
char cancion[16];
int cont_registros=0,pos;
registros=(Album *)calloc(MAX_PERSONAS,sizeof(Album));
if(registros==NULL)
exit(EXIT_FAILURE);
}
cont_registros=CargarRegistrosDeArchivoBinario(Album);
qsort(registros,cont_registros,sizeof(Album),CompararAlbum);