Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #include <iostream>
  2. #include "CAutomobile.h"
  3.  
  4. using namespace std;
  5.  
  6. CAutomobile::CAutomobile(int px, string coul, string NumIm,CMoteur &mot)
  7. {
  8. Prix = px ;
  9. Couleur = coul ;
  10. NumImmatriculation = NumIm ;
  11. LeMoteur = &mot ;
  12. }
  13.  
  14. void CAutomobile::Afficher()
  15. {
  16. cout << "Prix : " << Prix << endl ;
  17. cout << "Couleur: " << Couleur << endl ;
  18. cout << "NumImmatriculation: " << NumImmatriculation << endl ;
  19. cout << "de moteur : " << LeMoteur << endl ;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement