I am having with just getting it to work is the problem I am having with the "Programer defined function" (noted in the comments in the code) |
I see no comments in the code.
line 48-51. Several problems here.
1) You can't nest a function inside a function.
2) The ; on line 48 makes this a function prototype, not a function header.
3) Line 50: your formula is incorrect.
Move these lines in front of line 15.
Lines 78-81:
1) Ditto re nested function.
2) Ditto ; on line 78
3) Ditto regarding your formula being incorrect.
4) Line 78 should have a return type. i.e. It must match the prototype at line 6.
Other comments:
Line 35: If you can't open the file, you continue anyway.
Line 64: Ditto
Lines 82-86: These lines seem out of place. How can you even reach them?
Lines 40,69: Not a good idea to use ! eof() as your condition. Won't catch fail conditions. Better to use
while (in)
Your code would have been clearer and easier to read if lines 26-47 and 55-76 were separate functions. e.g. ConvertFileCtoF() and ConvertFileFtoC ().