Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void affichage_probleme(Tentrees ent,Tsorties sort,Tcolis colis) // affiche le résultat suivant les étapes
- {
- if(ent.a == 1)
- {
- printf("\n\t Le colis est petit");
- }
- if(ent.b == 1)
- {
- printf("\n\t Le colis est grand");
- }
- if(ent.c == 1)
- {
- printf("\n\t Il y a %d colis",sort.compteur);
- }
- if(sort.M1 == 1)
- {
- printf("\n\t Le moteur M1 est en marche");
- }
- if(sort.M2 == 1)
- {
- printf("\n\t Le moteur M2 est en marche");
- }
- if(sort.V2 == 1)
- {
- printf("\n\t Le moteur V2 est en marche");
- }
- if(sort.V1 == 1)
- {
- printf("\n\t Le moteur V1 est en marche");
- }
- if(colis.code == 0)
- {
- printf("\n\t Le numero du colis est impair");
- }
- if(colis.code == 1)
- {
- printf("\n\t Le numero du colis est pair");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement