K Kearsed Solid State Member Messages 13 Nov 30, 2011 #1 Hello, I am having a tough time with this problem in my C++ course and was wondering if I could have help with it. I'd appreciate it! (Algebra: multiplying two matrices) Write a function to multiply two matrices a and b and save the result in c. The header of the function is... #include <cstdlib> #include <iostream> #include <iomanip> using namespace std; #define N 3 void multiplyMatrix (const double a[][N], const double b[][N], double c[][N]); void printMatrix (const double a[][N]); int main(int argc, char *argv[]) {
Hello, I am having a tough time with this problem in my C++ course and was wondering if I could have help with it. I'd appreciate it! (Algebra: multiplying two matrices) Write a function to multiply two matrices a and b and save the result in c. The header of the function is... #include <cstdlib> #include <iostream> #include <iomanip> using namespace std; #define N 3 void multiplyMatrix (const double a[][N], const double b[][N], double c[][N]); void printMatrix (const double a[][N]); int main(int argc, char *argv[]) {
K Kearsed Solid State Member Messages 13 Nov 30, 2011 #2 ***Each element Cij is ail x b1j + ai2 x b2j + ai3 x b3j Write a test program that prompts the user to enter two 3 x 3 matrices and displays their product.***
***Each element Cij is ail x b1j + ai2 x b2j + ai3 x b3j Write a test program that prompts the user to enter two 3 x 3 matrices and displays their product.***