1. ## Matrix Multiplication

Hello, i would like to program a program that can do Matrix Multiplication.

I'm a beginner in C++, i heard that we should use 2-dimentional Array....

What other "thing" we need for programming Matrix Multiplication????

Do we need to know "class"???
I don't know "class" yet..

2. a matrix can be an array of floats

float matrix[4][4];

simple as that. it's a two dimensional array of floats. you don't NEED classes for anything but they are very good for structuring your code. Wait till you learn them to mess with it. For now, all you need is above

3. Thanks,

Can someone give me an internet web site that show how to do Matrix Multiplication with c++, or the algorithm for that??

Thanks

4. When you multiply two matrices, the first ones width must be the same as the second ones height. The resulting matrix will have the first ones height and the second ones width (as shown in the figure).

5. Matrix multiplication:

the i,j location in the product (the answer) is the dot product of the ith row of the first matrix and the jth column of the second matrix.

so the 1,1 spot of the product is the dot product of the first row and the first column. (in matrix notation, the first number is the row and the second is the column).

If (5, 2, 3, 1) and (2, 3, 4, 1) are what you are finding the dot product of, it would be (5 * 2) + (2 * 3) + (3 * 4) + (1 * 1)