#ifndef MATRIX_DEF #define MATRIX_DEF #pragma once #include #include #include #include using namespace std; /* ███████╗██████╗ ██████╗ ███████╗ ███████╗███╗ ██╗ ██████╗ ██╗███╗ ██╗███████╗ ██╔════╝██╔══██╗██╔════╝ ██╔════╝ ██╔════╝████╗ ██║██╔════╝ ██║████╗ ██║██╔════╝ █████╗ ██║ ██║██║ ███╗█████╗ █████╗ ██╔██╗ ██║██║ ███╗██║██╔██╗ ██║█████╗ ██╔══╝ ██║ ██║██║ ██║██╔══╝ ██╔══╝ ██║╚██╗██║██║ ██║██║██║╚██╗██║██╔══╝ ███████╗██████╔╝╚██████╔╝███████╗ ███████╗██║ ╚████║╚██████╔╝██║██║ ╚████║███████╗ ╚══════╝╚═════╝ ╚═════╝ ╚══════╝ ╚══════╝╚═╝ ╚═══╝ ╚═════╝ ╚═╝╚═╝ ╚═══╝╚══════╝ Author:Edge Web:likedge.top Date:20200925 */ //CreateMatrix Create a Matrix for ones; //ex: //2*3 //0 0 0 //0 0 0 //change the value in matrix typedef struct { int row,col; float **matrix; }Matrix; typedef struct { int row,col; string **str_matrix; }str_Matrix; str_Matrix CreateStr_Ma(int ro, int co) { str_Matrix str_arr; int row,col; string **designma; designma = (string**)malloc(ro*sizeof(string*)); for(int i = 0;i