bonjour à tous, quand j'essaie de remplir le tableau suivant dans le main


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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
 
#include <iostream>
using namespace std;
#include <conio.h>
 
 
class tableau
{
    private:
    int *a;
    int taille;
 
    public:
    tableau();
    tableau(int);
    tableau(const tableau &);
    ~tableau();
 
    tableau operator=(const tableau &);
    tableau operator+(const tableau &);
    bool operator==(const tableau &);
    int operator[](const tableau &);
    bool operator +=(const tableau &);
    void getchaine();
    void aff();
 
 
};
 
tableau::tableau()
{
    a=NULL;
    taille=0;
}
 
 tableau::tableau(int dim)
{
    taille=dim;
    a=new int[taille+1];
 
 
 
}
 
 
 
tableau::tableau(const tableau &tab)
{
    taille=tab.taille;
    for(int i=0;i<taille;i++)
    {
        a[i]=tab.a[i];
    }
}
 
tableau::~tableau()
{
    delete[] a;
}
 
tableau tableau::operator=(const tableau &tab)
{
 
    for(int i=0;i<taille;i++)
    {
        a[i]=tab.a[i];
    }
    return *this;
}
 
void tableau::aff()
{
    for(int i=0;i<taille;i++)
    {
        cout<<*(a+i);
    }
    cout<<endl;
}
 
int main()
{
 
tableau t1(4),t2,t3(4);
for(int i=0;i<4;i++)
{
t1[i]=10;
}
 
t2=t1;
    getch();
    return 0;
}
je reçois le msg d'erreur suivant:
non-lvalue in assigment
est-ce que quelqu'un peut m'aider
merci