File Get Corrupted while manipulation of data

Hey Guys,,

I did this coding .. but when ever i add data it doesn't save the data, and when i add second time the data it does.

Even when i try to delete any thing the file gets corrupted.

Sorry i cant copy the whole code here. It a big file.

So i have uploaded my CPP file in txt format.. here is the link:
http://anshuitsolution.com/cplusplus/CID-TEXT.txt

Please help me ..


Thanks in Advance,
Anshu Verma
Last edited on
what do you think which function is not working correctly..
any idea?
Hey,

I made only function that was for Murder then i Copied for other options as i didnt have time.

So my murder option is not working, and even i have tried all other functions too .. they are also not working. :(
It looks like delete_murder() is putting a just constructed murder object to clear the data, but you don't seem to have a constructor to set the values to zeros. By default, the values will be whatever happened to be in the memory.
Topic archived. No new replies allowed.