摘要:
c语言中实现矩阵的转置 1、 #include <stdio.h> int main(void) { int i, j, a[4][6], b[6][4]; puts("please input the elements of matrix a."); for(i = 0; i < 4; i++) 阅读全文
摘要:
1、 #include <stdio.h> int main(void) { int i, j, a[6][2]; puts("please input the elements of the array."); for(i = 0; i < 6; i++) { for(j = 0; j < 2; 阅读全文
摘要:
c语言中计算矩阵的乘积。 矩阵相乘的条件:左侧矩阵的列数等于右侧矩阵的行数。 矩阵相乘的结果:行数为左侧矩阵的行数,列数为右侧矩阵的列数。 #include <stdio.h> int main(void) { int i, j, k, a[4][6], b[6][7], c[4][7] = {0} 阅读全文