弟兄们, 俺怎么也想不通! 下列定义为何编译不通过????
win2k sp4 + bcb6
struct PP
{
s_int32 Length ; //int32
char ID [ 4 ];
s_int32 seq [4] ; //int32
char user [ 7 ] ;
s_int32 active[ 4 ] ; //int32
char pass [ 4 ] ;
void show_info(char * s)
{
int32 L = Length .get_it() ; //此处无报错
int32 seq = seq .get_it() ; //此处报错 E2294 Structure required on left side of . or .*
int32 a = active .get_it() ; //此处报错E2294 Structure required on left side of . or .*
sprintf(s ,
"\n s_int32 Length = %8.8x "
"\n char ID [ 4 ] = %4.4c "
"\n s_int32 seq = %8.8x "
"\n char user [ 7 ] = %7.7c "
"\n s_int32 active = %8.8x "
"\n char pass [ 4 ] = %4.4c "
"\n -----------------------------------\n"
,
L ,
ID ,
seq ,
user ,
a ,
pass
);
}
};