求助 C语言程序关于两个矩阵相乘
求C语言源代码:从键盘输入两个矩阵(MXN),输出这两个矩阵和这两个矩阵相乘的矩阵?需要把最后得到的矩阵写进一个后缀名为.TXT格式的文件。这个问题的要求如下:Yourp...
求C语言源代码:从键盘输入两个矩阵(MXN),输出这两个矩阵和这两个矩阵相乘的矩阵?
需要把最后得到的矩阵写进一个后缀名为.TXT格式的文件。
这个问题 的要求如下:
Your program must capture the following specifications.
1.display the matrices A(MxN) and B(NxM) first;
2.Write the matrix product computation as a separate function and pass the matrices A and B to that function;
3.From the main program, display the following:(i) size of the matrix C as "Size of the output(product) matrix:N x N" (ii) Entire matrix C(product of A and B) on the screen;
4.Write the matrix C in a file"output.txt"
5.Test with different M and N values. 展开
需要把最后得到的矩阵写进一个后缀名为.TXT格式的文件。
这个问题 的要求如下:
Your program must capture the following specifications.
1.display the matrices A(MxN) and B(NxM) first;
2.Write the matrix product computation as a separate function and pass the matrices A and B to that function;
3.From the main program, display the following:(i) size of the matrix C as "Size of the output(product) matrix:N x N" (ii) Entire matrix C(product of A and B) on the screen;
4.Write the matrix C in a file"output.txt"
5.Test with different M and N values. 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询