将数组a的每1行均除以该行上的主对角元素(第1行同除以a[0][0],第2行同除以a[1][1] 然后将a数组输出。

[复制链接]
查看11 | 回复2 | 2013-4-23 18:15:04 | 显示全部楼层 |阅读模式
//改正了,但是你的N设置太大了,我设置2,你可以运行一下,试试效果#include#define N 2void main(){ float a[N][N]; int i,j; printf("Please Input the a[N][N]:\n"); for(i=0;i#define N 3void main(){int a[N][N];int i,j,m;
//加个变量printf("Please Input the a[N][N]:\n");for(i=0;i#define N 81void main(){
int a[N][N];
int i,j;
printf("Please Input the a[N][N]:\n");
for(i=0;i<N;i++)
for(j=0;j<N;j++)
scanf("%d",&a...
回复

使用道具 举报

千问 | 2013-4-23 18:15:04 | 显示全部楼层
每个for循环加个大括号...
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行