Lines 17 to 21...
fscanf(p, "%s %lu", a, ¶meters[0]); // line 17
parameters[0]=pt1[0]; // line 19
fscanf(p, "%s %lu", a, ¶meters[1]); // line 20
parameters[1]=pt1[1]; // line 21
Seems like whatever values are read from the file on 17 and 20 are immediately overwritten on lines 19 and 21 with ptr1[] values.
VernonDozier
Posting Expert
5,675 posts since Jan 2008
Reputation Points: 2,633
Solved Threads: 738
Skill Endorsements: 18
What is the point of reading parameters[0] from file if u are replacing it with pt[1] later. Maybe what u mean is pt1[0]=parameters[0]? What are u using pt1[] (and pt2[],ct[],i,j,k) for anyway? can you post the full code?
v3ga
Junior Poster in Training
95 posts since Oct 2011
Reputation Points: 14
Solved Threads: 5
Skill Endorsements: 0