My loop within loop won't work
I made a loop which reads from some lines a file.
It works fine but now I want the loop within another loop.
Once I remove the now commented loop in this code, it doen't show the printf anymore:
Anyone know why?
//for(i = 0; j < 10; i++)
for (j = 0; j < N_points - 2 ; j++)
fgets(string, 512, input);
sscanf(string, "%lf %lf", &spectrum[i].wavelength[j], &spectrum[i].intensity[j]);
printf ("\n %d\t%g \t%g", j, spectrum[i].wavelength[j], spectrum[i].intensity[j]);