Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return 0;
- system("pause");
- printf("1. Adicionar nova musican");
- printf("2. Exibir todas as musicasn");
- printf("3. Sairnn");
- printf("Digite sua escolha: ");
- scanf_s("%d", &opcao);
- while ((c = getchar()) != 'n' && c != EOF) {}
- system("Cls");
- return opcao;
- ElementoVarredura = Head;
- if (ElementoVarredura == NULL) {
- return;
- }
- int contador = 1;
- while (ElementoVarredura != NULL) {
- printf("%d.n", contador);
- printf("Nome: %s", ElementoVarredura->nome);
- printf("Artista: %s", ElementoVarredura->banda);
- printf("Duracao: %s", ElementoVarredura->duracao);
- ElementoVarredura = ElementoVarredura->prox;
- contador++;
- printf("n------------------------------------n");
- }
- printf("n");
- system("pause");
- return;
- NovoElemento->nome = nome;
- NovoElemento->banda = banda;
- NovoElemento->duracao = duracao;
- NovoElemento->prox = NULL;
- if (Head == NULL)
- {
- Head = NovoElemento;
- }
- else
- {
- NovoElemento->prox = Head;
- Head = NovoElemento;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement