Petite question sur les structures
Bonjour à tous...
J'ai un petit soucis avec mes structures :oops: .
J'essaie de déclarer une structure comme suit dans un fichier .h :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| typedef short int tBlock8x8[64];
typedef struct {
int Standard;
int Stream_Number;
int Picture_Number;
int Slice_Number;
int MB_Number;
int MB_Type;
int Motion_Type;
int MV_Count;
int MV_Format;
tBlock8x8 Coef[6];
}t420_Macroblock; |
Et dans le fichier C qui va s'en servir je fais :
Code:
t420_Macroblock mb_P2TRANS[45*36];
Bien sûr j'ai une erreur :aie: mais j'ignore pourquoi.
Mes déclarations sont-elles correctes ?