C语言错误总结:request for member ‘xxx’ in something not a structure or union
先上代码:structcomplex{doublea,b;};//判断是否收敛intisConvergent(doublex,doubley){inti;doublea,b;structcomplexZ;Z.a=Z.b=0.0;for(i=1;i4)returni;}return0;}我的问题原因是声明Z时没加struct这几个字母,没加前:complexZ;加了后:structcomplexZ;