bjr...

qlq 1peut me dire ou est le pb ici j'arrive pas à compiler ce code;

msg d'erreur :error: cannot bind 'std::basic_ostream<char>' lvalue to 'std::basic_ostream<char>&&'
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include <iostream>
#include <string>
#include <fstream>
 
using namespace std;
//***********************************
class client{
	int no_ident;
	char nom[20];
	char prenom[20];
	public :
	void creer()
	{
		cout<<"\n n_identification,nom et prénom du client:";
		cin>>no_ident>>nom>>prenom;
	}
	void afficher()
	{cout<<"\n Num identification :"<<no_ident;
	 cout<<"\n Nom"<<nom;
	 cout<<"\n prenom"<<prenom;
		}
 
	int numero(){return no_ident;}	
	};
//*************************************	
int main()
{
client c;
    if(monFlux)    
    {
        monFlux << c.creer<< endl;
 
    }
    else
    {
        cout << "ERREUR: Impossible d'ouvrir le fichier." << endl;
    }
    return 0;
}