public static void Main()
{
Authentic simon = new Authentic();
bool Done;
Done = simon.ChangePassword("你好","nihao999");
if (Done == true)
Console.WriteLine("Password ok");
else
Console.WriteLine("error");
}
这段代买中的Done是什么意思哈?
下面有个三酸操作符 return (Password = userPassword) ? ture : false ;
还有为什么这里的if 和else 不加{}呢?
{
Authentic simon = new Authentic();
bool Done;
Done = simon.ChangePassword("你好","nihao999");
if (Done == true)
Console.WriteLine("Password ok");
else
Console.WriteLine("error");
}
这段代买中的Done是什么意思哈?
下面有个三酸操作符 return (Password = userPassword) ? ture : false ;
还有为什么这里的if 和else 不加{}呢?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货