line 8 should probably be of type string since u probably want a name longer than 1 character. Also note that 'cin' won't work if u try putting in a full name like: "John Deer" because that space between John and Deer is a delimiter. Inputting any bad character at anytime will case 'cin' and thus ur program to crash so there should be plenty of error checking the values typed in by the typical user.
I highly recommend not using keyword goto as well for controlling the flow as it can be incredibly difficult to debug in the future...There are simple fixes for example:
1 2 3 4 5 6 7 8
goto end2; //endl and end1 appear almost identical...
1 2 3
if(a == '1')
line 46: normally u should just open the file for either reading OR for writing, not both. You know better than I what you need but I don't see where u need any of: in, ate, binary flags...maybe app though...
There seems to be another problem with the 2nd half with but I'll let u try to sort it out first...
dev c++ is a no-no, if you want to use something like it I believe several forks are available, like orwells dev c++, the reason is dev c++ hasn't been updated in years, so it doesn't and never will support the latest versions of c++