Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Affecter_place_vehicule (Vehicule mat[9][5],int voitures,int camions)
- {
- int i,j,x=0;
- Vehicule e;
- for(i=0;i<9; i++)
- {
- for(j=0 ; j<5 ; j++)
- {
- if ((mat[i][j].type==0) && (x==0))
- {
- e=Saisir_vehicule(e);
- if (e.type==1){
- if (voitures>0){
- x=1;
- mat[i][j]=e;
- voitures--;
- }
- else if (camions>5){
- x=1;
- mat[i][j]=e;
- voitures--;
- }
- }
- else (e.type==2){
- if ((camions>0)){
- x=1;
- mat[i][j]=e;
- camions--;
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement