Soldato
- Joined
- 5 Aug 2006
- Posts
- 11,419
- Location
- Derbyshire
I am writing a C programme (not # or ++) that will use functions in order to read a .dat or .txt file that has x and y values, do some maths calcs on it, and then write the result to another file.
Dynamic memory has to be used as any number of lines of data could be in the file (so a linked list).
There needs to be a function to ask user for filenames, a function to read the file, a function to do the calcs and a function to write to a file.
Anyone got an examples of questions similar to this, or know of any websites?
Have tried many different google searches - Which 95% seem to be explaining a linked list or explaining functions, rather than actually show any examples.
Dynamic memory has to be used as any number of lines of data could be in the file (so a linked list).
There needs to be a function to ask user for filenames, a function to read the file, a function to do the calcs and a function to write to a file.
Anyone got an examples of questions similar to this, or know of any websites?
Have tried many different google searches - Which 95% seem to be explaining a linked list or explaining functions, rather than actually show any examples.