View Full Version : Problem in my C++ class

11-30-2011, 11:14 PM
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[])

***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.***