Hey guys so my program is basically done all im trying to do is delete allocated memory. It lets me delete it for one of them but I get an error for the second one. One of my peers basically has the same thing as me but for him it works but for me it doesnt. So why doesnt it work fro me and how do I fix it?
Ps. the one that gives me the error is delete [] wordFile[i];
line 6: ifstream infile2
line 54: while(infile2)
line 56: if(infile2.eof())
line 61: infile2.getline(buffer,256);
line 97: infile2.close();
Nowhere in the program is the file ever actually opened.
It is frustrating to attempt to answer questions on this topic. I've made a couple of previous responses but see the same problems already fixed re-appearing in the program.