Apr 6, 2009 at 8:48am UTC
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 Apr 6, 2009 at 8:48am UTC
Apr 6, 2009 at 10:42am UTC
what do you think which function is not working correctly..
any idea?
Apr 6, 2009 at 10:49am UTC
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. :(
Apr 6, 2009 at 12:17pm UTC
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.