074256_4.cpp
来自「一个用c语言写的一个矩阵加减乘的小程序。里面有具体的使用方法」· C++ 代码 · 共 28 行
CPP
28 行
//074256_4.cpp
#include"074256_1.h"
//fuction free_matrix ----------------------------
//To free the memory
void free_matrix(int **p_mat,int row)
{
int i=0;
for(i=0;i<row;i++)
{
free(p_mat[i]);
p_mat[i]=NULL;
}
free(p_mat);
p_mat=NULL;
}
//fuction clean -----------------------------------
//To clean the rest of an error line in scanf
void clean()
{
for(;getchar()!='\n';)
;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?