One row is skipped each time the program scans a matrix from file?

Not an expert on c at all. But when you go to do the second fscand() after the inner loop, won't j be equal to 3? , not 2.

How does that effect the fscanf()?

Tried fixing it couple of times ... didn't work for all occasions – Fendi May 10 '10 at 17:43.

Probably test->colmat1 is 3, since you are reading a matrix with 3 columns. But your inner loop runs four times, since j<=3 is true for j=3. So the inner fscanf() is executed four times, skipping over the first value of the second row.

Then the outer fscanf() is executed, and it reads till "\n", so the full second line is ignored. Solves your problem.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions