By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,952 Members | 1,404 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,952 IT Pros & Developers. It's quick & easy.

i want to know how we can write programe add,sub,divid,multible the matrix in c++

P: 1
i want to know how we can write programe add,sub,divid,multible the matrix in c++,,,,,,, and if u can give to me the code i will be thanxfull for u......
Nov 18 '08 #1
Share this Question
Share on Google+
2 Replies


10K+
P: 13,264
We won't give you the codes because that would be helping you to cheat on your homework.
Read your textbook, try the code and post if you get problems with your code.
Nov 18 '08 #2

P: 53
its quite simple, all you would need is a class that holds float values for a matrix ( _x1, _x2, and so on)

then you would need to put overloaded operator functions in that class for adding, subtracting etc.

for more info, just look up at directx SDK and LEARN how that has been done or as r035198x's said look up text books.
Nov 18 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.