c语言已知矩阵a=1 2 3 4 8 9 10 15 -7 8 9 2求其中最大值及所对应的行列号

[复制链接]
查看11 | 回复3 | 2012-12-20 11:49:20 | 显示全部楼层 |阅读模式
//你的矩阵是几行几列呢?我用3行4列为例子,你可以直接改动行列的#include main(){
int a[3][4]={1,2,3,4,8,9,10,15,-7,8,9,2};
int temp=a[0][0];
int i,j,indexI,indexJ;
for (i=0;itemp)
{
temp=a[j];
indexI=i;
...
回复

使用道具 举报

千问 | 2012-12-20 11:49:20 | 显示全部楼层
参照 http://zhidao.baidu.com/question/509228500.html?oldq=1#answer-1283654008...
回复

使用道具 举报

千问 | 2012-12-20 11:49:20 | 显示全部楼层
#include void main(){ int a[]={1,2,3,4,8,9,10,15,-7,8,9,2}; int index=0,temp=a[0]; for (int i=1;itemp){ temp=a; index=i; ...
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行