I'm starting to learn C, and I came across the following doubt:
When I ask the user to inform me a song or artist, he ends up informing me of a song with spaces, type "AS I AM"
, but the program skips the part of the song and the artist, how to solve it?
printf("MUSICA: ");
scanf("%s", novo->nome);
printf("ARTISTA: ");
scanf("%s", novo->artista);
printf("ANO: ");
scanf("%d", &novo->ano);