#include<stdio.h>
#include<malloc.h>
#include<stdlib.h>
#define TRUE 1
#define FLASE 0
typedef struct MATRIX
{
int ** matrix;
int x;
int y;
}MATRIX;
int initMatrix(MATRIX *p,int x, int y); /*对初始化后的矩阵进行赋值操作。*/
int mulMatrix(MATRIX *result,MATRIX p1,MATRIX p2); /*进行矩阵乘法。*/
int newMatrix(MATRIX *p,int x,int y); /*初始化确定阶数的矩阵。*/
int freeMatrix(MATRIX *p);
int freeMatrix(MATRIX *p)
{
int **temp = NULL;
int i;
temp = p->matrix;
if(NULL == temp)
{
printf(
矩阵利用二级指针完成乘法:
最新推荐文章于 2023-01-29 09:55:12 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)