北京171中学好吗:c的问题 大虾们帮忙啊(急4------)

来源:百度文库 编辑:神马品牌网 时间:2024/04/27 14:27:05
.h文件中是这样定义的
void aaa(struct s1 *, struct s2 *);
.c文件中要这样
yah_cns_msg(&e1,&e2);
其中e1是
struct s1 e1; //应该没问题的阿
而e2没有这样 //struct s2 e2;
而是这样的
struct
{
long xxx;
unsigned char yyy[20];
} e2; //怎么办啊
其中struct s2是这样的
struct s2
{
long xx;
unsigned char yy[1];
}