<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/1.0.4">
</HEAD>
<BODY>
Hi,
<BR>
<BR>
I am programming in Emboss but I do not understand why the buckle number 2 (see it in red) does not work.
<BR>
The problem is that the program does not pass by the buckle in red. Is it impossible to have two imbricated buckles or there is another problem ?
<BR>
I do not find the answer to my answer so, can someone help me, please ..... :-(
<BR>
Carole
<BR>
<BR>
<BR>
<BR>
This is the code :
<BR>
<BR>
<BR>
//Sélection des meilleurs couples
<BR>
ajint compteur2 = 0;
<BR>
iterList3 = ajListIter(ListCoupleInit); // parcours liste couple avec score
<BR>
iterList4 = ajListIter(BestCouple); // liste contenant meilleurs couples
<BR>
<BR>
ajint nbreBestCouple2 = 0;
<BR>
nbreBestCouple2 = ajListLength(BestCouple);
<BR>
ajFmtPrintF(outf,"\n nbre de meilleurs couples 2 : %d \n", nbreBestCouple2);
<BR>
<BR>
//remplissage liste BestCouple
<BR>
while (ajListIterMore(iterList3))
<BR>
{
<BR>
ajFmtPrintF(outf,"\n Boucle 1 \n");
<BR>
res3 = (CoupleOlig) ajListIterNext(iterList3);
<BR>
<BR>
ajint nbreBestCouple3 = 0;
<BR>
nbreBestCouple3 = ajListLength(BestCouple);
<BR>
ajFmtPrintF(outf,"\n nbre de meilleurs couples 3 : %d \n", nbreBestCouple3);
<BR>
<BR>
if (compteur2 == 0)
<BR>
        {
<BR>
         ajFmtPrintF(outf,"\n Boucle 3 \n");
<BR>
         ajListPush(BestCouple, (void *) res3);
<BR>
         ajFmtPrintF(outf,"\n Boucle 5 \n");
<BR>
        }
<BR>
compteur2 ++;
<BR>
<BR>
<BR>
while (ajListIterMore(iterList4))
<BR>
<FONT COLOR="#f80000"><B>        {</FONT></B>
<BR>
<FONT COLOR="#f80000"><B>         ajFmtPrintF(outf,"\n Boucle 2 \n"); </FONT></B>
<BR>
<FONT COLOR="#f80000"><B>         res4 = (CoupleOlig) ajListIterNext(iterList4);</FONT></B>
<BR>
<FONT COLOR="#f80000"><B>         if (res3->score <= res4->score)</FONT></B>
<BR>
<FONT COLOR="#f80000"><B>         {</FONT></B>
<BR>
<FONT COLOR="#f80000"><B>         ajFmtPrintF(outf,"\n Boucle 4 \n"); </FONT></B>
<BR>
<FONT COLOR="#f80000"><B>         ajListInsert(iterList4, (void*) res3);</FONT></B>
<BR>
<FONT COLOR="#f80000"><B>         } </FONT></B>
<BR>
<FONT COLOR="#f80000"><B>        }</FONT></B>
<BR>
}
<BR>
<BR>
<BR>
ajint nbreBestCouple = 0;
<BR>
nbreBestCouple = ajListLength(BestCouple);
<BR>
ajFmtPrintF(outf,"\n nbre de meilleurs couples : %d \n", nbreBestCouple);
<BR>
<BR>
<BR>
<BR>
<BR>
</BODY>
</HTML>