Commenter un code et explications
bonjour à tous,
c'est ma première et je promets de faire un effort et de ne pas vous déranger à l'avenir pour ce genre de truc.
mais y a 15 ans d'ici j'écrivais en c++, ici j'ai un bout de code en C qu'on me demande d'expliquer. A y bien regarder je me rends compte que je dois ré-ouvrir mes livres d’antan.
y aurait il une âme charitable qui pourrait commenter ce code de façon que je puisse y comprendre quelque chose.
ceci est un Please avec un grand "P"
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| struct colsFacture *tallocFacture()
{
return (struct colsFacture *)malloc(sizeof(struct colsFacture));
}
struct colsLigneFacture *tallocLigneFacture()
{
return (struct colsLigneFacture *)malloc(sizeof(struct colsLigneFacture));
}
struct colsProduit *tallocProduit()
{
return (struct colsProduit *)malloc(sizeof(struct colsProduit));
}
struct colsCommande *tallocCommande()
{
return (struct colsCommande *)malloc(sizeof(struct colsCommande));
}
struct colsFournisseur *tallocFournisseur()
{
return (struct colsFournisseur *)malloc(sizeof(struct colsFournisseur));
}
struct colsLivraison *tallocLivraison()
{
return (struct colsLivraison *)malloc(sizeof(struct colsLivraison));
} |
merci un bon milliard de fois à qui voudra m'aider
;)
kyronex,