哪位高手帮我修改一下下面这段程序的错误,我看了实在是改不出.急用...先谢谢了!
double bucmul(double ar,double ai,double br,double bi,int m,int n,int k,double cr,double ci)
{
int i,j,l,u,v,w;
double p,q,s;
for(i=0;i<=m-1;i++)
for(j=0;j<=k-1;j++)
{u=i*k+j;
cr[u]=0.0; error (C:\Documents and Settings\基地12号\桌面\Text1.c(85) : error C2109: subscript requires array or pointer type
C:\Documents and Settings\基地12号\桌面\Text1.c(85) : errorC2106: '=' : left operand must be l-value)
ci[u]=0.0;
for(l=0;l<=n-1;l++)
{v=i*n+l;
w=l*k+j;
p=ar[v]*br[w]; error (C:\Documents and Settings\基地12号\桌面\Text1.c(90) : error C2109: subscript requires array or pointer type
C:\Documents and Settings\基地12号\桌面\Text1.c(90) : error C2109: subscript requires array or pointer type)
q=ai[v]*bi[w];
s=(ar[v]+ai[v])*(br[w]+bi[w]);
cr[u]=cr[u]+p-q;
ci[u]=ci[u]+s-p-q;
}
}
return(cr,ci);
}
----------------解决方案--------------------------------------------------------