详细的问题说明,有助于回答者给出准确的答案
struct data1
{
int slot[3];
int flag;
int ftime[5];
int ltime[5];
char carnumber[6];
};
我declare的是 struct data1 a[2];
然后:struct data1 a[0]={{1,1,1},1,{2008,12,24,13,0},{2008,12,26,0,10},"A12345"};
这样做似乎是不可以的。。。。
那我要怎么做呢??才能实现给struct里面的数组赋值呢??
|