Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how can i add two 2*2 2d matrix in c++
Posted
Comments
Stefan_Lang 24-Jul-14 3:12am    
We don't just write code on request. If you have trouble writing code, it's about time you do your homework - we can't do that for you. We're here to help fix issues with code that already exists but doesn't work as intended.

Hint:
If you don't know how to add two matrices, this is a math question, not C++. If you do know how to add two matrices on paper, put that in code. Once you have that, if your code doesn't work, then you have a valid reason to come here and post a question. but not before.

1 solution

We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!

But here are the basic principles: http://www.purplemath.com/modules/mtrxadd.htm[^] in case you have forgotten how to do it...
 
Share this answer
 
Comments
Stefan_Lang 25-Jul-14 4:56am    
While your posting gets more boring every time you post it, it's as true as ever. Bonus point for posting a relevant link nonetheless!

Have a 5
OriginalGriff 25-Jul-14 5:11am    
It is dull - but I have it in a database so that I give the Polite Version instead of saying what I might really think at the moment and seriously offending the OP... :laugh:

I say it so often that I am as bored of writing it as you are of reading it - and I'm worried that I might just flip out and be really offensive if I don't have a "vanilla" version to hand. Same with "Google is your friend" ;D
Stefan_Lang 25-Jul-14 5:33am    
Maybe you should issue a request to CP to auto-post this to any queston that has been flagged as homework ;-)
OriginalGriff 25-Jul-14 6:04am    
Unfortunately there are some over-zealous persons who will retag even legitimate questions as homework (or abuse vote them as "not a question") even if the user is trying to do his homework and genuinely needs help.

I'd prefer a remote control electric shock system for the lazy... :laugh:

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900