Operator <<

Fermé
hanane_1 Messages postés 95 Date d'inscription dimanche 8 avril 2007 Statut Membre Dernière intervention 5 avril 2010 - 5 avril 2010 à 02:27
ostream& operator<<(ostream& out, const Jeu& j) {
for (unsigned int i(0); i < j.size(); ++i)
out << " + " << *(j[i]); // ligne d'erreur
return out;
}
le msg d'erreur est:
'<<' : no operator defined which takes a right-hand operand of type 'class Carte' (or there is no acceptable conversion)
Aidez moi SVP