Domanda

Voglio usare abc1, ABC2, ABC3, abc4, .. abc100, come nome di variabile struct. Ma io non so come impostare questo? non hanno idea.

Qualcuno può aiutarmi a uscire? Grazie davvero.

È stato utile?

Soluzione

Sembra che tu stia cercando un array.

typedef struct { 
/* ... */
} whatever;

whatever abc[100];

abc[0] = xxx;
abc[3] = yyy;
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top