>>I almost completed the system
You still have more clean-up work to do.
1) stop using gets() and fflush(stdin). . You are writing a c++ program, not a C program. So replace gets() with cin.getline(). And read this thread how to flush the input stream.
2) Login problem. You need to either add more code that allows people to set up a login account, or just manually add the information to the text file.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343