矩阵的快速转置

阅读更多
#include"stdio.h"
#include"string.h"
struct Maxtrix{
    int row;
    int col;
    int data;
};
const int MAXN = 100;
int j;
main(){
    struct Maxtrix mtr[MAXN];
    struct Maxtrix newMtr[MAXN];
    memset(newMtr,0,sizeof(newMtr));
    int count[MAXN];
    memset(count,0,sizeof(count));
    int pos[MAXN];
    memset(pos,0,sizeof(pos));
    int i=1;
    int maxCol=0;
    printf("%s\n","输入原来矩阵(格式:row colum data)输入0 0 0表示结束");
    while(scanf("%d%d%d",&mtr[i].row,&mtr[i].col,&mtr[i].data)!=EOF&&i<100){
        if(mtr[i].row==0)break;
        maxCol=(maxCol 
  

 

你可能感兴趣的:(矩阵,快速转置)