Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C by nemo ( 15 years ago )
void InsertionInd (struct Ind index[], struct Ouvriers *fiche, int n, int posi)
{
int i;
struct Ind indextmp;
strcpy (indextmp.NomPrenom, fiche->Nom);
strcat (indextmp.NomPrenom, " ");
strcat (indextmp.NomPrenom, fiche->Prenom);
indextmp.Posi = posi;
indextmp.NumRegistre = fiche->NumRegistre;
i = n-1;
while (i >= 0 && strcmp (index[i].NomPrenom, indextmp.NomPrenom) >= 1)
{
index[i+1] = index[i];
i--;
}
index[i+1] = indextmp;
}
Revise this Paste