Bonjour à tous...
J'ai un petit soucis avec mes structures.
J'essaie de déclarer une structure comme suit dans un fichier .h :
Et dans le fichier C qui va s'en servir je fais :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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;
Bien sûr j'ai une erreur
Code : Sélectionner tout - Visualiser dans une fenêtre à part t420_Macroblock mb_P2TRANS[45*36];mais j'ignore pourquoi.
Mes déclarations sont-elles correctes ?
Partager