Login system

how to add delete verify and print users in a login system.
looks like a google query. hehe ;)
you will need to give some more information if you want help.
does kinda but im seriously stuck on this, iv managed to code the login in but am stuck on the rest.the program has to first read the user ids and passwords from a file and create a binary search tree using the user-ids as a key(assume unique user-ids for convenience).once the tree has been built it should display the following menu,
1) add new user
2)delete user
3)print user
4)exit program
Are you using a console? Or what type of input system are you using?

Also, you should probably post some code, if you want actual help on IT!
yes im using a console.. this is the first coode i have.
#include <string>
#include <cstdlib>
#include <iostream>

using namespace std;

int main()
{
string password;
cout << "please enter your password to continue." << endl;
cin >> password;
if (password == "Dlamini")
{
cout << "hello Sihle!" << endl;
system ("PAUSE");
}
else if(password != "Dlamini")
{
cout << "WRONG PASSWORD" << endl;
system ("PAUSE");
}
}
Ok, well, what I would do Next is the following:

Work on WHAT the input file (holding the uids and passwords) should like.
Work on HOW to read that file (most likely, using a std::ifstream)
And, create the binary tree. If you don't know what that is or how to do it, I would read up on that too.

Then, you can worry about what the "display" should do, and whatever additional stuff/functions/functionality you need, or, want.

So, those would be my next few steps.

As an additional: I am (unfortunately ;)) not an expert on "login-/User management systems", but I DEFINITELY think that holding them in a text file is not the "best"/"most standard" approach. If you know how to use DBs, I would use that in this case.
Last edited on
thank you. this will surely help me.
I do Hope So! :) ;)
Topic archived. No new replies allowed.