Sunteți pe pagina 1din 6

PROYECTO ALBUM:

Nombre: Nicole Pirca

#include <stdio.h>

#include <stdlib.h>

#include <string.h>

#include <math.h>

#include <conio.h>

#include <ctype.h>

#define MAX_PERSONAS 100

typedef struct _fechaD

int anio;

int mes;

int dia;

} fechaD;

typedef struct _Bandas

char Nombre_Banda[64];

char Origen[64];

char Integrantes[8];

char Color_Oficial[64];

char Agencia[64];

char Solistas[16];
fechaD fechaD_lad;

} Bandas;

typedef struct _artista

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;

typedef struct _Album

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 menu1 ();

char opc;

printf("\n BIENVENIDOS MUNDO KPOP");

printf("\n MENU DE OPCIONES");

printf("\n1. CONTROL DE INFORMACION DE ALBUMS");

printf("\n2. CONTROL DE INFORMACION DE BANDAS");

printf("\n3. CONTROL DE INFORMACION DE ARTISTAS");

printf("\n4. SALIR");

printf("\n\n\t\tElija una opcion ->");

opc=getche();

return opc;

char menuAlbums();

char opc1;

printf("\n1. INGRESAR NUEVO ALBUM");


printf("\n2. BUSCAR ALBUM");

printf("\n3. ACTUALIZAR ALBUM");

printf("\n4. ELIMINAR UN ALBUM");

printf("\n5. LISTAR ALBUM REGISTRADOS");

printf("\n6. SALIR");

printf("\n\n\t\tElija una opcion ->");

opc1=getche();

return opc1;

char menuBandas();

char opc2;

printf("\n1. INGRESAR NUEVA BANDA");

printf("\n2. BUSCAR BANDAS");

printf("\n3. ACTUALIZAR INFORMACION DE LA BANDA");

printf("\n4. ELIMINAR UNA BANDA");

printf("\n5. LISTAR BANDAS REGISTRADAS");

printf("\n6. SALIR");

printf("\n\n\t\tElija una opcion ->");

opc2=getche();

return opc2;

char menuArtistas();

char opc3;
printf("\n6. INGRESAR NUEVO ARTISTA");

printf("\n2. BUSCAR ARTISTA");

printf("\n3. ACTUALIZAR UN ARTISTA");

printf("\n4. ELIMINAR UN ARTISTA");

printf("\n5. LISTAR ARTISTAS INGRESADOS");

printf("\n6. SALIR");

printf("\n\n\t\tElija una opcion ->");

opc3=getche();

return opc3;

int main()

album *registros;

char *opciones[]={"buscar","actualizar","eliminar"};

char opc, conf;

char cancion[16];

int cont_registros=0,pos;

registros=(Album *)calloc(MAX_PERSONAS,sizeof(Album));

if(registros==NULL)

fprintf(stderr,"No se pudo reservar memoria !\n");

exit(EXIT_FAILURE);

}
cont_registros=CargarRegistrosDeArchivoBinario(Album);

qsort(registros,cont_registros,sizeof(Album),CompararAlbum);

S-ar putea să vă placă și