<form id="hz9zz"></form>
  • <form id="hz9zz"></form>

      <nobr id="hz9zz"></nobr>

      <form id="hz9zz"></form>

    1. 明輝手游網中心:是一個免費提供流行視頻軟件教程、在線學習分享的學習平臺!

      局限輸入次數的系統登陸的完成

      [摘要]今天在外面看書 看到一個寫登陸的程序 可是沒有限制登陸的次數想了一下 做了這個程序 簡單的來表示一下如何限制 登陸次數using System;namespace Ginger547class Class1public static void Main(string[] args)int i = ...
      今天在外面看書 看到一個寫登陸的程序 可是沒有限制登陸的次數

      想了一下 做了這個程序 簡單的來表示一下如何限制 登陸次數

      using System;

      namespace Ginger547

      {

      class Class1

      {

      public static void Main(string[] args)

      {

      int i = 3;

      string strInput = null ;

      for (i = 1 ; i<= 3 ; i++)

      {

      Console.WriteLine ("輸入密碼");

      strInput = Console.ReadLine();

      if (strInput =="Ginger547")

      break;

      else

      Console.WriteLine("密碼錯誤,無法進入");

      Console.WriteLine();

      }

      if (strInput == "Ginger547")

      Console.WriteLine("Login 成功");

      else

      Console.WriteLine("非法進入.......");

      Console.ReadLine();



      }

      }

      }






      日韩精品一区二区三区高清