1 2 3 4 5 6 7 8 9 10
| typedef enum {SPORTS, MUSIQUE, PAYS, NB_CATEGORIES} TCategorie;
char const * sports[] = {"soccer","tennis","course","musculation","patin","escalade","natation","ski","gym","escrime"};
char const * musique[] = {"classique","saoul","reggae","jazz","rock","gospel","house","techno","punk","hardcore"};
char const * pays[] = {"France","Canada","Argentine","Chili","Allemagne","Australie","Japon","Chine","Maroc","Iran","USA"};
int LengthCategorie[NB_CATEGORIES] = { sizeof sports/ sizeof (char*) ,
sizeof musique/ sizeof (char*) ,
sizeof pays/ sizeof (char*)
};
char const * TitreCategorie[NB_CATEGORIES] = {"Sports", "Musique", "Pays"};
char const ** Sujets[NB_CATEGORIES] = {sports,musique,pays}; |