1.0 should really be there :S
Is the fget here pulling that first line away then?
Type: Posts; User: Scupham
1.0 should really be there :S
Is the fget here pulling that first line away then?
The original data contains headers for the data.
ie: X and Y
I was under the impression i could use fget to disregard these and start storing the parameters after this. ie 1, 2,3,4,5
My main...
Thanks ill be around for a wee while,
I thought the whole point of fgets was to disregard the first line and start storing all the values after?
Ok added that peice of code to the program, "as it should crash"?
Any chance of talking on MSN at all? or you prefer over the forum?
Sorry to be such a pain in the ass.
Hmm now the list does not even start to store values:
8625
Any other ideas, It is crashing as soon as the program has read the data.
Thanks, tried your suggestions.
Now the program crashes, here is the debug.
Seems like the linked list is not finishing when there is no data left.
Also the data is not being passed on into...
Well that is supposed to tell my linked list where the end is, i.e. NULL = end of list.
So when doing calculations it gets to a ptr where next=NULL and stops.
I am not getting the correct output from my program.
However i know the problem is to do with me not terminating the linked list correctly in the reading function.
Yet i have no idea how to fix...
Hi thanks for the advice, cannot use 2008 as im in a Uni lab atm. However the program is marked on Vis Basic 6, should should be ok.
I tried changing the struct etc as you said, but this created...
Hey im using Visual Studio 6, im not getting any errors or warnings.
For error 4, this program is being marked against different data types ensuring it can read and write. In the specification it...
That is my input data into the system.
ie printing out everything to screen that im looking at from the file and also all the calculations?
Ok i now have a working copy :D
One problem my output is:
[QUOTE]Gradient = -1.#IND00
Constant = -1.#IND00
[/CODE]
Some how these are not whole number s:S
At home i use Chrome
Uni i use IE7
Oh its just when i copy over into this the indentations go a miss.
i could upload a .c file if that would be better.
I think i need to sit down and look at my linked lists and what there doing
Ok this is my first time running a debug on a program.
Im getting this:
8623
From what i can tell sumx cannot get the data from the struct measurements.
Any ideas on how i can fix this?
...
EDIT: bolded wrong section, actually crashing at calculating data
Ok new issues.
I get the program crashing when i run, it seems to crash when im calculating the line parameters
...
Ok changed that thanks :D
I am getting a compiler error which is preventing me from completing my program.
If i can get the one error out it should solve all of the others.
ALL ERRORS ARE IN BOLD SECTION OF CODE
...