Page 2 of 2

Re: ADDITION of two matrix program

PostPosted: Fri Dec 31, 2010 8:36 pm
by sidduchezian
sorry and thank you for the replies..! :-)

Re: ADDITION of two matrix program

PostPosted: Fri Dec 31, 2010 8:40 pm
by enrico-sorichetti
to make the most out of the questions You ask
it would be good for You to read and meditate on
How To Ask Questions The Smart Way
http://catb.org/~esr/faqs/smart-questions.html

Re: ADDITION of two matrix program

PostPosted: Sat Jan 01, 2011 2:47 am
by dick scherrer
Hello and welcome to the forum,

and what does
MOVE 20 TO LIN.
MOVE 30 TO COL.
this signify..??
This is "your" code - why did you write this?

One of the pitfalls of grabbing code from just anywhere is that while it may appear to work, it may not work for all cases or it may contain some surprises. Another is that you try to implement something you do not yet understand. The reason your class is given these exercises is for you to learn.

We have several "seniors" here who will help you thru writing/debugging your code, but the biggest amount of effort should be for you.

Re: ADDITION of two matrix program

PostPosted: Sat Jan 01, 2011 3:04 am
by enrico-sorichetti
Hi Dick!
if You want to know You should ask Sunil Jagadish :D
http://suniljagadish.blogspot.com/2005/06/caps-on.html

happy and prosperous new year to all of You !
enrico

Re: ADDITION of two matrix program

PostPosted: Sat Jan 01, 2011 3:09 am
by dick scherrer
Hi Enrico,

Happy New Year to you as well!

d

Re: ADDITION of two matrix program

PostPosted: Sat Jan 01, 2011 11:13 pm
by sriraj1122
IF ((ROW1 NOT = ROW2) AND (COL1 NOT = COL2))


Firstly You have to modify the above condition

IF ((ROW1 NOT = ROW2) OR (COL1 NOT = COL2))

u can write as below too..!

IF ((ROW1 = ROW2) AND (COL1 = COL2))

Am verifying the below code and will tell u soon 1!!