欢迎大家光临我的博客!
首先ゝ. 我们再次回顾了上次银行登录系统的登录代码的实现!
登陆的实现:
这段代码实现了验证密码的正确性和三次输入不正确就中断输入的功能
public void Login()
{
Console.WriteLine("请输入密码:");
for (int i = 2; i >=0;i-- )
{
password=Console.ReadLine();
if (password == "123456")//输入成功
{
Console.WriteLine(