jai définit ce code dans le fichier.cpp sans mettre la déclaration au fichier.h
code;:
voila le msg d'erreur:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 ostream& operator<<(ostream& out, const Jeu& j) { for (unsigned int i(0); i < j.size(); ++i) out << " + " << *(j[i]);// ligne d'erreur return out; }
binary '<<' : no operator defined which takes a right-hand operand of type 'class Carte' (or there is no acceptable conversion)
Aidez moi SVP ç urgent
Partager