Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "CAutomobile.h"
- using namespace std;
- CAutomobile::CAutomobile(int px, string coul, string NumIm,CMoteur &mot)
- {
- Prix = px ;
- Couleur = coul ;
- NumImmatriculation = NumIm ;
- LeMoteur = &mot ;
- }
- void CAutomobile::Afficher()
- {
- cout << "Prix : " << Prix << endl ;
- cout << "Couleur: " << Couleur << endl ;
- cout << "NumImmatriculation: " << NumImmatriculation << endl ;
- cout << "de moteur : " << LeMoteur << endl ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement