J'ai une erreur sur mon programme et je ne trouve pas, et surtout ne comprend pas ce qu'il me veux.
Alors il me dis :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 --------------------Configuration: ACEstim - Win32 Debug-------------------- Compiling... ACEstim.cpp D:\crocis\AutoCollimation\ACEstim\ACEstim.cpp(72) : error C2227: left of '->SetValeur' must point to class/struct/union ACMath.cpp Generating Code... Skipping... (no relevant changes detected) DllEstimDialog.cpp Error executing cl.exe. ACEstim.dll - 1 error(s), 0 warning(s)
voici l'endroit qu'il me donne :
voici un extrait de mon .h
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 CACMatrix* CACEstimApp::CreerMatriceTheta(int N, int D, long TE) { CACMatrix* x = new CACMatrix(N,D+1); for(int y=0;y<N;y++) { for(int x=0;x<=D;x++) { long v = (long)pow(y+1,D-x); x->SetValeur(y,x,v); } } return x; }
Et enfin le code du cpp
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 class CACMatrix { private: long** M; int L; int C; public: // Constructeur CACMatrix(IMG I); CACMatrix(int l, int c); // Destructeur ~CACMatrix(); // Accesseur long GetL(); long GetC(); long GetValeur(int l, int c); void SetValeur(int l, int c, long v); void SetLigne(int l, CACVector * V); void SetIMG(IMG I); CACVector* SommeColonne(); CACVector* DeriveLigne(); void Filtrer(CFiltre & F); void Binariser(int Seuil); void Absolu(); void Normaliser(int Inf, int Sup); void bidouille(); void SetAllPixel(int p); void Delete(); };
Si quelqu'un vois d'ou cela vient, je vous en remercie d'avance.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 long CACMatrix::GetValeur(int l, int c) { return M[l][c]; } void CACMatrix::SetValeur(int l, int c, long v) { M[l][c] = v; }
Partager