I'm having some trouble using struct which I can't seem to figure out. it seems to be following all the examples perfectly, i've tried to break it down to it's simplest block and nothing. Can somebody please tell me why this won't compile?
#include <stdio.h>
typedef struct a{
char a[25][12]={"a", "b", "c"};
int b[12]={10, 5,1};
};
struct test{
char a[25][12]={"a", "b", "c", "d"};
int b[12]={2, 1,1,3};
int c[12]={1,1,1,2};
};
int main (){
return 0;
}
I get this error
error C2143: syntax error : missing ';' before '='
but this error doesn't make much sense to me.
TIA.