Disquera Temptations
-
Upload
neiry-anais-padilla -
Category
Documents
-
view
220 -
download
0
Transcript of Disquera Temptations
-
7/21/2019 Disquera Temptations
1/3
#include #include // Para usar el getchce()#include
using namespace std;
struct Interprete {char nombre [30];Interprete *primero; //apunta al primer interprete de la listaInterprete *ultimo; //al ultimo intereprete de la listaInterprete *siguiente; //al siguiente de la lista
};
struct Disquera {char nombre [30];Disquera *siguiente;
};
struct CD {char nombre [30];Disquera *disquera;CD *siguiente;
};
void Menu (){cout
-
7/21/2019 Disquera Temptations
2/3
nuevo2 -> siguiente = NULL; if (nuevo->primero == NULL){ coutultimo -> siguiente = nuevo; nuevo->ultimo = nuevo; } }}
void Mostrar_Interpretes(){ Interprete *aux; CD *aux1; int i=0; aux = aux->primero; cout
-
7/21/2019 Disquera Temptations
3/3
if(elimina==1) { aux->primero=aux4->siguiente; aux4->siguiente=NULL; } else { auxiliar1=aux2; aux2=aux2->siguiente; auxiliar1->siguiente=aux2->siguiente; aux2->siguiente=NULL; } } }int main (){
char opc;do {
Menu ();opc=getche();switch (opc){
case '1': Nuevo_Interprete ();break;case '2': Mostrar_Interpretes ();break;case '3': Eliminar();
break;case '4': exit(1);default: cout