mardi 14 juillet 2015

how to check if the 3 numbers matches with the numbers generated?c programming

how to check if the 3 numbers matches with the numbers generated? For example I have struct which contains name of user and his/her 9 numbers I have to printf the first user (there are for example 4 users) who has/have 3 numbers equal to generated numbers. I generate 20 numbers. I know I have to put break after I found that perso but I dont know how to find that person,If you know how to write that code pls help.

this is how I declared struct:

typedef struct{
char name[10];
int number[9];
}someone;




Aucun commentaire:

Enregistrer un commentaire