Merci pour ta réponse qui me fait déjà bien avancer mais il y a encore un problème avec les flux :
[antho@localhost C++]$ gcc -o test.out test.cxx ticket.cxx
ticket.cxx: Dans member function « void ticket::setVal() »:
ticket.cxx:13: « cout » non déclaré (première utilisation dans cette
fonction)
ticket.cxx:13: (Chaque identificateur non déclaré est rapporté seulement une
seule fois pour la fonction dans laquelle il apparaît.)
ticket.cxx:13: « cin » non déclaré (première utilisation dans cette
fonction)
ticket.cxx:13: « endl » non déclaré (première utilisation dans cette
fonction)
[antho@localhost C++]$
# RE
Posté par Mookie . En réponse au message Compilation C++. Évalué à 1.
[antho@localhost C++]$ gcc -o test.out test.cxx ticket.cxx
ticket.cxx: Dans member function « void ticket::setVal() »:
ticket.cxx:13: « cout » non déclaré (première utilisation dans cette
fonction)
ticket.cxx:13: (Chaque identificateur non déclaré est rapporté seulement une
seule fois pour la fonction dans laquelle il apparaît.)
ticket.cxx:13: « cin » non déclaré (première utilisation dans cette
fonction)
ticket.cxx:13: « endl » non déclaré (première utilisation dans cette
fonction)
[antho@localhost C++]$