I have a structure which contain information like name, first name, id, etc. I am creating a fonction to search by name into the structure tabStudent[i].name I am not sure why it's not working can you please help?
void recherchename(Student tabStudent[], int nbrStudent, int name)
{
for (int i = 0; i < nbrStudent; i++)
{
if (nbrStudent == tabStudent[i].name)
{
//code
}
Aucun commentaire:
Enregistrer un commentaire