Kimossab

VerPergunta - ED

Apr 28th, 2014
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.56 KB | None | 0 0
  1.  
  2. void VerPergunta(NPerguntas *Per)
  3. {
  4.     printf("\n=========================================================\n");
  5.     printf("Código: %s\n", Per->Info->Codigo);
  6.     printf("Dificuldade: %d\n", Per->Info->Dificuldade);
  7.     printf("Enunciado: %s\n", Per->Info->Enunciado);
  8.     printf("Respostas:\n");
  9.     printf("\t%d | %s - Resposta Certa\n", Per->Info->LRespostas->Inicio->Info->Codigo, Per->Info->LRespostas->Inicio->Info->Resp);
  10.     NRespostas *R = Per->Info->LRespostas->Inicio->prox;
  11.     while(R)
  12.     {
  13.         printf("\t%d | %s\n", R->Info->Codigo, R->Info->Resp);
  14.         R=R->prox;
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment