当我试图编译下面的程序时,我收到错误,因为请求成员“机器”不是结构或联合
struct machine
{
int a;
int b;
int c;
};
struct config
{
struct machine *machine;
int n;
};
int main()
{
struct config *conf;
struct machine *mach;
mach->a=1;
mach->b=2;
mach->c=3;
conf.machine=mach; /* error in this line */
return 0;
}
谁能帮我修复这个错误..提前谢谢!!!