Advertisement
ProToTN

Saisir_vehicule

Dec 19th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.64 KB | None | 0 0
  1. Vehicule Saisir_vehicule(Vehicule Parking[9][5],Vehicule E){
  2.     char ch;
  3.     printf("\n--Saisie de vehicule--\n");
  4.     do{
  5.         printf("Donner type du vehicule: ");
  6.         scanf("%d",&E.type);
  7.     }while((E.type!=1)&&(E.type!=2));
  8.     if (Affecter_place_vehiculee(Parking,E.type)==0){
  9.         printf("Immatriculation: ");
  10.         scanf("%d",&E.immatriculation);
  11.         printf("Horaire d'entree(HH:MM): ");
  12.         scanf("%d %c %d",&E.h_entree.heure,&ch,&E.h_entree.minute);
  13.         printf("Date d'entree (JJ/MM/AAAA): ");
  14.         scanf("%d %c %d %c %d",&E.d_entree.jour,&ch,&E.d_entree.mois,&ch,&E.d_entree.annee);
  15.     }
  16.     return E;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement