I have a problem on programming, its not really my assignment,

but my friends...

i just thought i can resolve this at C, because i got some backgrounds on it..

but i can't do it

my compiler is dev c++

the code must be on C++ not C

can i know the simplest code that can add, subtract and multiply matrices

in one single program only?

maybe something like

1.asking me the dimensions of the 1st matrix and the 2nd matrix

2.input the values for the 1st matrix then second matrix

3.then ask what operation

then the answer...

i will very much appreciate it,if you add some comments on lines that are significant...

thanks