bonjour je voudrai créer un tableau avec une liste de produits ayant des attributs comme leur nom, leur etat dans un stock, la duree de fabrication et le delai de livraison.
N'ayant pas trouver comment faire en c++ un tableau avec a la fois des mots et des chiffres, j'ai pensé à creer une classe produit avec tous ces attributs. sauf que la je suis bloqué puisque je compile et ca me dit que affiche n'est pas déclaré donc j'arrivepas à avancer.

besoin d'aide svp

voici ce que j'ai fait:
#include<iostream>
using namespace std;
class Cproduit
{
protected:
char* nomProduit;
int* etatStock;
int* dureeFab;
int* delaiLiv;
public:
Cproduit(const char*nom, const int*etat,const int*duree,const int*delai);
void setNom(const char*nom);
void setEtat(const int*etat);
void setDuree(const int*duree);
void setDelai(const int*delai);
void affiche();
};
Cproduit::Cproduit(const char*nom, const int*etat,const int*duree,const int*delai)
{
this->setNom(nomProduit);
this->setEtat(etatStock);
this->setDuree(dureeFab);
this->setDelai(delaiLiv);
}
void Cproduit::setNom(const char*nom)
{
if(nom)
{
this->nomProduit=new char[strlen(nom)];
strcpy(this->nomProduit,nom);
}
else
nomProduit=NULL;
}
void Cproduit::setEtat(const int*etat)
{
if(etat)
{
this->etatStock;
}
else this->etatStock=NULL;
}
void Cproduit::setDuree(const int*duree)
{
if(duree)
{
this->dureeFab;
}
else this->dureeFab=NULL;
}
void Cproduit::setDelai(const int*delai)
{
if(delai)
{
this->delaiLiv
}
else this->delaiLiv=NULL;
}
void Cproduit::affiche()
{
cout<< "nomProduit:"<<this->nomProduit<<endl;
cout<< "etatStock:"<<etatStock<<endl;
cout<< "dureefab:"<<dureeFab<<endl;
cout<< "delailiv:"<<delaiLiv<<endl;
}
int main(int argc,char*argv[])
{
affiche();
return 0;
}
merci d'avance!!!!!!!!!!!