Probleme de new, tableau, * , ou & ?
|
Thread Tools | Display Modes |
|
#3
|
|||
|
|||
Re: Probleme de new, tableau, * , ou & ?
Quote:
en même temps quand je l'enlève j'ai une erreur: main.cc: In function `void Read_Graph(char*, AdjList&, HashTable&, int)': main.cc:186: error: no match for 'operator=' in '*(tabVertex + (+(ligne * 2 ![]() vertex.h:61: error: candidates are: void Vertex: ![]() main.cc:239: error: cannot convert `Vertex' to `Vertex*' for argument `1' to `float distanceE(Vertex*, Vertex*)' main.cc:242: error: cannot convert `Vertex' to `Vertex*' for argument `1' to `float distanceE(Vertex*, Vertex*)' make: *** [main.o] Erreur 1 apparemment il va chercher un operateur = redefini dans Vertex.h -- void operator =(Vertex& b) { = b.name; parent = b.parent; distance = b.distance; degre = b.degre; x=b.x; y=b.y; }; -- que penses tu de ces lignes ? Vertex **tabVertex = new Vertex*[getNbreVert()]; tabVertex[ligne] = new Vertex ( etiq , degre, x,y ); ou alors je dois retirer la redefinition de l'operator = |
Bookmarks |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Petit probléme avec outlook express !!! | Alexlesioux | Internet, Réseaux et Sécurité | 11 | 31-08-2004 07:16 |
Probleme de Raid avec MSI K7T266 Pro2 RU | Lionel-78 | Windows NT4/2000/XP Client | 0 | 03-04-2003 12:01 |
Probléme de lenteurs... | chalouf | Discussions sur le site et/ou le forum | 11 | 22-01-2003 19:37 |
Probleme site!! | chalouf | Discussions sur le site et/ou le forum | 4 | 21-10-2002 21:06 |
Problème forum | claude922 | Discussions sur le site et/ou le forum | 15 | 21-10-2002 07:04 |
All times are GMT +2. The time now is 22:57.
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.