Attribut Tableau c++
napi15
Messages postés
78
Statut
Membre
-
Char Snipeur Messages postés 10112 Date d'inscription Statut Contributeur Dernière intervention -
Char Snipeur Messages postés 10112 Date d'inscription Statut Contributeur Dernière intervention -
Bonjour,
comment cree un attribut de type tableau et faire son constructeur afin que je puisse le remplire a partire d'une fonction deriverr
exemple :
class Employee {
protected:
string nom; <=====je VEUX QUE NOM ET PRENON SOIT UN TABLEAUX string....
string prenon ;
public:
//Get & Set Prenon
void setNom( string name ) { nom= name;}
void setPrenon(string pre ) { prenon= pre;}
string getNom () { return nom ; }
string getPrenon () { return prenon ; }
virtual double gain () =0;
virtual double augmenter (double pourcentage) =0;
};
comment cree un attribut de type tableau et faire son constructeur afin que je puisse le remplire a partire d'une fonction deriverr
exemple :
class Employee {
protected:
string nom; <=====je VEUX QUE NOM ET PRENON SOIT UN TABLEAUX string....
string prenon ;
public:
//Get & Set Prenon
void setNom( string name ) { nom= name;}
void setPrenon(string pre ) { prenon= pre;}
string getNom () { return nom ; }
string getPrenon () { return prenon ; }
virtual double gain () =0;
virtual double augmenter (double pourcentage) =0;
};
A voir également:
- Attribut Tableau c++
- Tableau word - Guide
- Tableau ascii - Guide
- Trier un tableau excel - Guide
- Imprimer un tableau excel - Guide
- Tableau croisé dynamique - Guide