Home > Net >  Do a login procedure using c # if statement, write loop condition, entry-level can master
Do a login procedure using c # if statement, write loop condition, entry-level can master

Time:10-10

Console login program
Demand and function:
1, prompt the user for the account password to log in, if there is no account tip need to register
2, in the console for registration process, and the need to determine the account password can't with Chinese
3, can login, registration done in turn prompts for accounts, completes the input password, then login
4, the following problems are login prompt error, and suggest why error
(no this account, password mistake, account password format error,)
5, password three times in a row the number of errors is overmuch, and exit the console,

CodePudding user response:

1 account information to local TXT, reading is also take the same
2 don't let it is ok to type in Chinese, in textbox event recognition only English and Numbers
3 after the registration account password saved to TXT
4 to traverse all accounts, and input the judgment of the
5 to enter account every time an error count

These are the ideas, and then the specific not baidu

CodePudding user response:

The login process is

1. Check whether the user name is
2. If there is a judgment whether to enable
3. If you enable the comparing MD5 password

That is left is the output corresponding error message, the information is without password out as far as possible or direct COUNT (*) the value of the
  • Related