Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C by Nemo ( 15 years ago )
do
 {
  a = menu(a);
  switch (a)
  {
  case 1:
    system("cls");
    while (nouvriers < 100 && EncodeOuvri (&personne;[nouvriers], &index;[nouvriers], nouvriers, NumReg))
    {
     printf("\n");
     nouvriers++;
    }
    system&#40;"cls"&#41;;
    break;
  case 2:
    i=0;
    system&#40;"cls"&#41;;
    printf("\nAffichage Sequentielle\n\n");
    if (nouvriers == 0)
    {
     printf("\nVous n'avez encore encode aucun ouvrier\n\nAppuyez sur une touche pour continuer\n");
     touche = getch();
     break;
    }
    /*
    for (i=0; i<nouvriers; i++)
    {
     AfficheOuvri(&personne;[i], i);
    }
    */
    printf("\nPour commencer l'affichage appuyer sur Enter\n");
    do
    {
     touche = getchar();
     if (touche == 10)
     {
      AfficheOuvri (&personne;[i], i);
      touche = getchar ();
      i++;
     }
     else
     {
      if (touche == 33)
      {
       break;
      }
     }
    }while (i<nouvriers);

    if (i<nouvriers)
    {    
     system&#40;"cls"&#41;;
     break; 
    }
    else
    {
     printf("\nIl n'y a plus d'ouvriers à afficher !\nPour continuer appuyer sur une touche");
     touche = getch();
    }
  }
 }while (a != 3);

 

Revise this Paste

Your Name: Code Language: