Coders Packet

Log In System using C++

By SAYAK MUKHOPADHYAY

It is a Log In System using C++. It includes Registration and Login for non-existing and existing users respectively.

It is a Log In Authentication system written in the C++ programming language. It includes Registration and Login for non-existing and existing users respectively.

Here file handling technique of C++ is used to maintain a database of user's emails and passwords. Along with these conditional statements (if-else), for loop, while loop is also being used. 

Here is a walkthrough of the program.

Step 1: Compile and run the main.cpp file.

Step 2: After successful compilation, the program starts its execution and asks the user to enter a choice between Log In and Register.

Register :

On choosing register it asks to enter Name, a valid Email address, and Password for his account.

There is an additional check for an email address where it checks whether the email address includes a '@' or not. And also if someone enters an email address that is already registered with the system it throughs a message that the email is already registered. After passing all the criteria successfully a user can register in the system.

Log In :

On choosing Log In it asks to enter the credentials that include the registered email id and the particular password. If any of the input fields creates a conflict with the criteria the program through a message that the entered credentials are invalid.

Last but not least the Exit option basically terminates the program.

 

Download Complete Code

Comments

No comments yet