鞍点 C语言

[复制链接]
查看11 | 回复2 | 2008-9-2 00:42:28 | 显示全部楼层 |阅读模式
#define M 10
#define N 10
main()
{int i,j,k,m,n,flag1,flag2,a[N][M],max,maxi,maxj;
printf("enter the number of matrix lines:");
scanf("%d",&n);
printf("enter the number of matrix row:");
scanf("%d",&m);
for(i=0;imax){max=a[j];
maxj=j;}
for(k=0,flag1=1;ka[k][maxj])flag1=0;
if(flag1){printf("the %d line,the %d row is %d",i,maxj,max);
flag2=1;}
}
if(!flag2)printf("without the saddie point\n");
}
我编的怎么不行呀,请帮个忙塞

回复

使用道具 举报

千问 | 2008-9-2 00:42:28 | 显示全部楼层
#define M 10 #define N 10 main() {int i,j,k,m,n,flag1,flag2,a[N][M],max,maxi,maxj; printf("enter the number of matrix lines:"); scanf("%d",&n); printf("enter the number of matrix row:"); scanf("%d",&m); for(i=0;i<n;i++) {printf("the %d line?\n",i); for(j=0;j<m;j++);
//注意这里多了个;号scanf("%d",&a...
回复

使用道具 举报

千问 | 2008-9-2 00:42:28 | 显示全部楼层
如果通过不了运行的话,可能是版本问题,我这看你没什么特别的问题...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行