Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <semaphore.h>
- #include <time.h>
- #include <pthread.h>
- #include "libCanciones.h"
- #include "libUsuarios.h"
- #include "libPlaylist.h"
- #include "conio.h"
- #include "gotoxy.h"
- #include "string.h"
- sem_t mutex;
- int main()
- {
- //printf("APRUEBAME Y DIME LINDURA!\n");
- int x=0, y=0, aux=0, auxY=0;
- char opcion =0;
- //barraDeCarga();
- hidecursor(0);
- gotoxy(20,10);
- gotoxy(18,10);
- color(1);
- printf("->");
- gotoxy(20,10);
- color(7); ///quizas sea mejor con otro color
- printf("-- inicio de sesion");
- gotoxy(20,12);
- printf("-- crear cuenta nueva");
- y=funcionMenu(18,10,10,12);
- auxY = whereY();
- system("cls");
- stUsuario u;
- stUsuario mels;
- strcpy(mels.nombreUsuario, "mels");
- strcpy(mels.pais,"arg");
- mels.anioNacimiento=1999;
- mels.eliminado =0;
- mels.tipoUsuario =0;
- mels.idUsuario = 12;
- /* if (auxY ==10)
- {
- u =LogIn();
- }
- else if (auxY == 12)
- {
- printf("crear usuario");
- cargaArchivoUsuario();
- }*/
- ///////////// menu usuaios no-admin*//////////
- system("cls");
- hidecursor(0);
- gotoxy(5,3);
- printf("MI PERFIL");
- gotoxy(5,5);
- printf("LISTADO DE CANCIONES");
- gotoxy(5,7);
- printf("ESCUCHAR PLAYLIST");
- auxY = funcionMenu(2,3,3,7);
- gotoxy(18,3);
- // system("pause");
- system("cls");
- switch (auxY)
- {
- case 3: ///Revisar que si no hace movimiento no lo lee
- printf("\nmi perfil");
- muestraUnUsuarioRegular(mels);
- gotoxy(5,7);
- printf("Desea modificar algun dato?");
- gotoxy(3,10);
- printf("-SI");
- printf("\n\n -NO"); ///deberia volver atras
- aux = funcionMenu(0,10,10,12);
- system("cls");
- if (aux==10)
- {
- gotoxy(24,15);
- color(1);
- printf("->");
- gotoxy(25,15);
- printf("-MODIFICAR NOMBRE");
- gotoxy(25,17);
- printf("-MODIFICAR PASSWORD");
- gotoxy(25,19);
- printf("-MODIFICAR GENERO");
- gotoxy(25,21);
- printf("-DARME DE BAJA");
- aux = funcionMenu(22,15,15,21);
- system("cls");
- switch (aux)
- {
- case 15:
- printf("modificar nombre");
- break;
- case 17:
- printf("modificar pass");
- break;
- case 19:
- printf("modif genero");
- break;
- case 21:
- printf("baja");
- break;
- }
- }
- else if (auxY == 12)
- {
- printf("\nentro");
- }
- break;
- case 5:
- system("cls");
- gotoxy(15,1);
- printf("V E R L I S T A D O S");
- gotoxy(2,4);
- printf(" que desea escuchar?");
- gotoxy(2,6);
- printf("-CANCIONES");
- gotoxy(2,8);
- printf("-PODCASTS");
- gotoxy(2,10);
- printf("-AUDIOLIBROS");
- aux = funcionMenu(0,6,6,10);
- system("cls");
- switch (aux)
- {
- system("cls");
- case 6:
- gotoxy(5,3);
- printf("MOSTRAR LISTADO COMPLETO");
- gotoxy(5,5);
- printf("BUSCAR POR NOMBRE");
- gotoxy(5,7);
- printf("BUSCAR POR ARTISTA");
- aux = funcionMenu(2,3,3,7);
- system("cls");
- switch (aux)
- {
- case 3: ///canciones
- printf("muestra lista canciones completa");
- break;
- case 5:
- printf("busca por nombre");
- break;
- case 7:
- printf("busca por artista");
- break;
- }
- break;
- break;
- case 8: ///podcast
- gotoxy(5,3);
- printf("MOSTRAR LISTADO COMPLETO");
- gotoxy(5,5);
- printf("BUSCAR POR NOMBRE");
- gotoxy(5,7);
- printf("BUSCAR POR ARTISTA");
- aux = funcionMenu(2,3,3,7);
- system("cls");
- switch (aux)
- {
- case 3:
- printf("muestra lista podcast completa");
- break;
- case 5:
- printf("busca por nombre");
- break;
- case 7:
- printf("busca por artista");
- break;
- }
- break;
- case 10: ///audiolibros
- gotoxy(5,3);
- printf("MOSTRAR LISTADO COMPLETO");
- gotoxy(5,5);
- printf("BUSCAR POR NOMBRE");
- gotoxy(5,7);
- printf("BUSCAR POR ARTISTA");
- aux = funcionMenu(2,3,3,7);
- system("cls");
- switch (aux)
- {
- case 3:
- printf("muestra lista audiolib completa");
- break;
- case 5:
- printf("busca por nombre");
- break;
- case 7:
- printf("busca por artista");
- break;
- }
- break;
- }
- case 7:
- printf("\nplaylist:");
- gotoxy(2,4);
- printf("AGREGAR CANCION A LA PLAYLIST");
- gotoxy(2,6);
- printf("REPRODUCIR PLAYLIST");
- aux= funcionMenu(0,4,4,6);
- system("cls");
- switch (aux)
- {
- case 4:
- printf("agregar");
- break;
- case 6:
- printf("reproducir");
- break;
- }
- break;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement