Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Vehicule Saisir_vehicule(Vehicule Parking[9][5],Vehicule E){
- char ch;
- printf("\n--Saisie de vehicule--\n");
- do{
- printf("Donner type du vehicule: ");
- scanf("%d",&E.type);
- }while((E.type!=1)&&(E.type!=2));
- if (Affecter_place_vehiculee(Parking,E.type)==0){
- printf("Immatriculation: ");
- scanf("%d",&E.immatriculation);
- printf("Horaire d'entree(HH:MM): ");
- scanf("%d %c %d",&E.h_entree.heure,&ch,&E.h_entree.minute);
- printf("Date d'entree (JJ/MM/AAAA): ");
- scanf("%d %c %d %c %d",&E.d_entree.jour,&ch,&E.d_entree.mois,&ch,&E.d_entree.annee);
- }
- return E;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement