using System;
namespace helloworld
{
    public class Student
    {
        private Student() { }
        private static Student studentUser = new Student();
        private string netStation = "http://www.whpu.edu.cn";
        private string user = "liubing";
        private string secret = "123456";
        public static Student GetInfo()
        {
            return studentUser;
        }
        public string Login
        {
            set
            {
                if (value == "888")
                {
                    Console.WriteLine("վΪ:" + this.netStation);
                    Console.WriteLine("û:" + this.user);
                    Console.WriteLine("û:" + this.secret);
                }
                else
                {
                    Console.WriteLine("Բ,!");
                }
            }
        } 
    }
    class Program
    {
        static void Main()
        {
            string[] studentName = { "Liu", "MM", "Jiang", "zhuang" };
            bool login = false; 
            string member; 
            Console.Write("ѧ:"); 
            member = Console.ReadLine();
            for (int i = 0; i < studentName.Length; i++) 
            {
                if (member == studentName[i]) 
                { 
                    login = true; 
                } 
            } 
            if (login) 
                { 
                    Student  m = Student .GetInfo();
                    Console.Write(":"); 
                    m.Login = Console.ReadLine(); 
                } 
            else 
                { 
                    Console.WriteLine("ѧ!"); 
                }  
            Console.ReadLine();
        } 
     }
}

