- 需要对某程序进行登录,现已知该程序的登录账户和密码,要求实现登录过程
- 登录账户是一班,登录密码是123.
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 登录程序编写{class Program{static void Main(string[] args){string username;string password;Console.WriteLine(\"**********************************\");Console.WriteLine(\"\\t\\t登录界面\");Console.Write(\"请输入您的账号:\");username = Console.ReadLine();Console.Write(\"请输入您的密码:\");password = Console.ReadLine();if (username == \"一班\" && password == \"123\")Console.WriteLine(\"登录成功\");elseConsole.WriteLine(\"对不起!您的账号或密码不正确\");Console.WriteLine(\"**********************************\");Console.ReadKey();}}}
爱站程序员基地
![(原创)[C#] 一步一步自定义拖拽(Drag&Drop)时的鼠标效果:(一)基本原理及基本实现-爱站程序员基地](https://aiznh.com/wp-content/uploads/2022/07/20220721231016-62d9dcd85c40b-220x150.gif)

