Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    Nov 2011
    Thanked 0 Times in 0 Posts

    Problem in my C++ class

    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.***
    Last edited by Misfits; 11-30-2011 at 11:22 PM.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts