I'm using fstream.h to read in a text
I used the file .get() so I could store the characters one at a time. This is causing an access violation, which my roommate said it was trying to write to protected memory in windows, but I dont know anything about it. After I get this error messages my computer restarts itself.
Does anyone have any ideas as to what I could do to fix this?
I'll include the file
here is the test file that is referenced in the program
Your file-reading is waaaay to long and complex. Why don't you
just read your whole file into an array of floats by using the
>> operator of ifstream/float and do all your calculation stuff