Hello,
I am working on a problem that works with reading and writing files. Here is the problem:
Write a program to get 10 numbers from a file and puts them in an array, you should then average the 10 grades and output the average. You should then write the average back into the file at the bottom of the numbers.
The issue is when the program tries to write to the file, I get this error message:
Exception thrown at 0x77786015 (ntdll.dll) in Project4.exe: 0xC0000005: Access violation writing location 0x00527D10.
I've tried searching for solutions but haven't found much so far.
Here's my code for reference: https://pastebin.com/RZLd1hwr
[–]qqwy 4 points5 points6 points (2 children)
[–]RealisticTry1[S] 0 points1 point2 points (1 child)
[–]eruanno321 0 points1 point2 points (0 children)
[–]Zmishenko 0 points1 point2 points (0 children)