日期:2014-05-17  浏览次数:20825 次

小小白求帮忙看下代码
 static void Main(string[] args)
        {
            AdminLogin adminlogin = new AdminLogin();
            adminlogin.show();
            string user = Console.ReadLine();
            string password = Console.ReadLine();
            
            adminlogin.Login(user,password );
           
            Console.ReadKey();
        }
        public class AdminLogin
        {

            public string user;
            public string password;
            public string Login(string user, string password)
            {



                if (user == "admin" && password == "888888")
                    return "登录成功";


                else

                    return "输入错误";




            }
            public void show()
            {
                Console.WriteLine("********************************");
                Console.WriteLine("        管理员登录界面");
                Console.WriteLine("********************************");
                Console.Write("用户名:");
                user = Console.ReadLine();
                Console.Write("密码:");
                password = Console.ReadLine();

            }
        }




那个输出 登录成功  和输入错误  应该怎么才能显示出来,,谢谢