Chaîne avec nombre comme variable, question Unix C [fermé]
Question
Je veux utiliser ABC1, abc2, ABC3, ABC4, .. ABC100, comme nom de variable struct. Mais je ne sais pas comment mettre cela? ont aucune idée.
Quelqu'un peut-il me aider? Merci bien.
La solution
On dirait que vous êtes à la recherche d'un tableau.
typedef struct {
/* ... */
} whatever;
whatever abc[100];
abc[0] = xxx;
abc[3] = yyy;
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow