源代码编译连接时出错

wenqin2006 2006-12-04 10:58:17
代码如下:
#include<stdio.h>
void main()
{
int i,j,k,h,l;
float sum1,sum[5]={0},r[5],c[3],p[5][3];
printf("please input arrylist c!\n");
for(h=0;h<=2;)
{
printf("input the %d one!\n",h+1);
scanf("%f",c);
h++;
}
printf("please input two demesion arrylist p\n");
for(l=0;l<=4;)
{
printf("input the %d one!\n",l+1);
scanf("%f",p);
l++;
}
for(i=0;i<=2;i++)
{
for(j=0;j<=4;j++)
{
sum[i]+=c[j]*p[i][j];
}
sum1+=sum[i];
}
print("the order is as follows:");
for(k=0;k=4;k++)
{
printf("the %d one is :",k+1);
r[k]=sum[k]/sum1;
print("%f ",r[k]);
}
}
刚写了一个代码,调试的时候没有问题,可就是提示说连接有问题,希望那位兄弟能帮我一把,刚开始学习C语言,请各位多多指教!谢谢!
...全文
106 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

33,311

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 新手乐园
社区管理员
  • 新手乐园社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧