Connecting Tech Pros Worldwide Forums | Help | Site Map

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

Newbie
 
Join Date: Nov 2008
Posts: 1
#1: Nov 18 '08
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......

Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#2: Nov 18 '08

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


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.
Member
 
Join Date: Mar 2007
Posts: 47
#3: Nov 18 '08

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


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.
Reply