zied9992000
Messages postés9Date d'inscriptionlundi 16 juillet 2007StatutMembreDernière intervention 7 mars 2009
-
9 déc. 2008 à 20:36
Lutinore
Messages postés3246Date d'inscriptionlundi 25 avril 2005StatutMembreDernière intervention27 octobre 2012
-
10 déc. 2008 à 02:06
salu les amis !, svp est ce qu'il ya une faute ici ???
il ma retourne:
9700 parie reel
17890 partie imag
ya t'il 1 autre methode !
#include
class complexe{
public:
int reel, imag;
complexe(int reel=0,int imag=0){};
friend complexe operator+(complexe A,complexe B)
{
return(A.reel+B.reel,A.imag+B.imag);
}
void affiche()
{
cout<<"La Partie Reel est: "<<reel;
cout<<"\nLa Partie Imaginaire est: "<<imag;
}
};