April 12th, 2013, 01:06 PM
matrix multiplication 3x3 for loops???
So basically I have to tell the user to input data and i use a for loop:
for (i=0; i< 3; i++)
cin >> p[i],p[i], p[i];
now for the confusing part is, what do i put in the nested for loops to multiply them and output them so it looks something like
matrix p,r1: # # #
" ",r2: " "
" " " "
April 12th, 2013, 02:23 PM
Re: matrix multiplication 3x3 for loops???
If you were mutiplying 3x3 matrices on paper by hand, how would you do it? When you know how you would do it by hand, then you know the algorithm and then you can can code the algorithm in c++.
You might like to read this
All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.
C, C++ Compiler: Microsoft VS2015
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!