Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.51 KB | None | 0 0
  1.   printf("MEDICO?:\n\n");
  2.     printf("1 - Sim\n");
  3.     printf("2 - Nao\n\n");
  4.     scanf("%", opcao);
  5.  
  6.     if (opcao == 1) {
  7.          do{
  8.     printf("Medico:\n\n");
  9.     scanf("%s", medi);
  10.  
  11.     for (i = 0; i < num_med; i++) {
  12.  
  13.         if (comparaString(medi, medico[i].nome) == 1) {
  14.             strcpy(novaconsulta->especialidade,esp);
  15.             break;
  16.         }
  17.         printf("Medico nao existe! \n");
  18.            
  19.     }
  20.     }while(comparaString(medi, medico[i].esp) == 0 );
  21.        
  22.     } else if (opcao == 2) ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement