Hello I am trying to wonder how would someone go about starting a login system? Just want criticism on how this looks so far it is far from complete just want the most constructive criticism throw it at me.
StudentID
why are you using pointers? surely the password should be string?
and this:
1 2
returnfalse;
return 1;
make no sense.
You need a mechanism of mapping the user to their password (std::map maybe?)
edit:
These:
1 2 3 4 5 6 7
void StudentsID::Displayusername(string TheUsername)
{
for (int i = 0; i < username.size(); i++)
cout << username[i] << endl;
}
are not doing what you think they are. There is not point in iterating through all the characters in a username, you can just cout the whole thing in one go.
perhaps you meant something like this:
1 2 3 4 5 6 7 8
void StudentsID::Displayusernames(vector<string> usernames)
{
for (int i = 0; i < usernames.size(); i++)
{
cout << username[i] << endl;
}
}