void Promotion::saisir(istream &cin) {
    float taux;
    string lib;
    cout << "Entrez un libellé : ";
    cin >> lib;
    cout << "Entrez la réduction : ";
    cin >> taux;
    
    setLibelle(lib);
    setTauxReduction(taux);
}
示例#2
0
文件: Tarif.cpp 项目: Redpavul/M3105
Tarif::Tarif(const string& unLibelle, float unPrixKilo) : prixAuKm(unPrixKilo,PRIXMIN,PRIXMAX) {
    setLibelle(unLibelle);

}