#include "Matrix.h" void MultMatrices(matrix *first, matrix *second, matrix *answer); void MultMatrices(matrix *first, matrix *second, matrix *answer) { short row, col, kk, pp; for(row=0;rowrows;row++) { for(col=0;colcols;col++) { pp=(answer->cols)*row+col; answer->st[pp]=0; for(kk=0;kkcols;kk++){ answer->st[pp]=answer->st[pp]+(first->st[first->cols*row+kk]*second->st[second->cols*kk+col]);} }} }