Posted by: kaloVale February 11, 2009
help needed computer geeks about coding!!
Login in to Rate this Post:     0       ?        
TechGuy, It does what it is suppose to do... it gives me correct solution and correct matrix.. but somehow it does not read eof() and goes back to fill the vectors again with the last digit which it had already done with. I tested with couple of files to see if it is got to do with the files, again it does the same thing. It simply does not read the eof() of the files I am testing with.
this is the test file I am using. I for the inverse and E for system of equation. After I and E is the rows of the matrix.And I have put cursor at the ennd of the file too.

I 3
1 1 0
4 3 0
2 1 -1

I 2
2 -4
4 -7

I 3
1 1 0
1 2 1
2 3 2

E 3
1 2 1 8
2 1 -1 1
1 1 -2 -3

E 3
1 1 0 20
1 2 1 30
2 3 2 55
thanks!!
Read Full Discussion Thread for this article