Home / Expert Answers / Computer Science / i-39-m-writing-a-user-login-program-in-c-that-require-a-database-and-currently-i-39-m-using-visual-s-pa910

(Solved): I'm writing a user login program in C++ that require a database and currently I'm using visual studi ...



I'm writing a user login program in C++ that require a database and currently I'm using visual studio as my "editor" I guess not sure what to call it. While I'm sure for the use case I've created it will be easy to make the code and I was planning on making some switch while statements for when the program will prompt the user asking if the user already has an account, the user can sign in with said stored credentials being userID and Password, while the other aspect will be to allow the user to make an account. Not sure if there is a way to have it so it reacts to two switch while cases such "y" and "n" for have an account and make an account respectively. Once a user has signed in I want them to be able to add other users to a group via a database that should store the first, last name and email that the user gives once they've made an account for the first time.

The two issues that I don't know how to work around are how to store a user so that when they click yes or y for them having an account I want that to check the database with the info they give and either sign them in or say incorrect UserID or password. As for the other issue it also revolves around the database for the group adding aspect I was thinking about making parallel arrays maybe 3 of them for first name, last name and email since they can all use string as the variables.



We have an Answer from Expert

View Expert Answer

Expert Answer


We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe