You need to put break statement on lines 27 and 30 so that if you select Login the program won't make you register also.
and 1 tips fom my side that opening file mode instead of "wb+"..use "w".
No. "wb+" is correct in this program because the structures are being written in binary mode using fwrite().at line 67.
Ancient Dragon
Achieved Level 70
32,112 posts since Aug 2005
Reputation Points: 5,836
Solved Threads: 2,575
Skill Endorsements: 68