lenanttais44
Messages postés34Date d'inscriptionmardi 22 mai 2007StatutMembreDernière intervention 7 février 2008
-
18 juin 2007 à 15:48
lenanttais44
Messages postés34Date d'inscriptionmardi 22 mai 2007StatutMembreDernière intervention 7 février 2008
-
21 juin 2007 à 16:46
Bonjour j'ai un problème en utilisant des fonctions récursives
Je dois faire un tri fusion
J'ai fait du copier-coller sur des programmes étant déjà fait mais dès que je fait l'appel d'une fonction récursive VisualC++2005 m'envoie ce message
void __CLR_OR_THIS_CALL _Orphan_me()
{ // cut ties with parent
if (_Mycont != 0 && _Mycont->_Myfirstiter != _IGNORE_MYITERLIST)
{ // adopted, remove self from list
_Iterator_base **_Pnext =
(_Iterator_base **)&_Mycont->_Myfirstiter;
while (*_Pnext != 0 && *_Pnext != this)
_Pnext = &(*_Pnext)->_Mynextiter;
if (*_Pnext == 0)
_DEBUG_ERROR("ITERATOR LIST CORRUPTED!");
*_Pnext = _Mynextiter;
_Mycont = 0;
}
}
Voici mon programme
void trifusion(std::vector<Station> Tfin,int deb,int fin)
{
int a=0;
if(deb<fin) {
int m=(deb+fin)/2;
if(deb<m) trifusion(Tfin,deb,m);
if(m<fin) trifusion(Tfin,m,fin);
//fusion(Tfin,deb,m,fin);
}
}