1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ConsoleApplication4 8 { 9 class Program 10 { 11 static void Main(string[] args) 12 { 13 Console.WriteLine("欢迎进入明日官网 "); 14 Console.WriteLine("请输入用户名:"); 15 string name = Console.ReadLine(); 16 Console.WriteLine("当前登入用户:"+name ); 17 Console.Read(); 18 19 } 20 } 21 }
运行结果: