i'm making a little project for college so i can only use stdio.h so the prob is with condition i initialized an array of strings and a 2d array of int to 0 then it don't show everything like i need to and it don't stop in the condition : filling 5 MatriceDate and TabNom it only show 3 and then a 10 lines of 0 0 0 0 0! full code here: http://ift.tt/2g4TwBd & thnx and i'm new here so.. O:) c=0;
while(MatriceDate[2][c]!=0)
{
verif=0;
if (anf>MatriceDate[c][2] && MatriceDate[c][2]>an)
verif=1;
else if (anf>=MatriceDate[c][2])
{
if (moif>=MatriceDate[c][1])
if (jrf>=MatriceDate[c][0])
verif=1;
}
else if (an>=MatriceDate[c][2])
{
if (moi<=MatriceDate[c][1])
{
if (jr<=MatriceDate[c][0])
verif=1;
}
}
if (verif==1)
{
printf("%s \n",TabNom[c]);
for ( d=0;d<5;d++)
{
printf("%d " ,MatriceDate[c][d] );
}
printf("\n");
}
c++;
}
`
Aucun commentaire:
Enregistrer un commentaire