int i=0;while(true)
{
if(i>2)
return;
Console.WriteLine("Input password please ;");
string pwd=Console.ReadLine();
if(pwd!="xxxxxx")
{
Console.WriteLine("Invalid password!");
i++;
}
else
{
Console.WriteLie("Welcome to my world!");
break;
}
}
{
if(i>2)
return;
Console.WriteLine("Input password please ;");
string pwd=Console.ReadLine();
if(pwd!="xxxxxx")
{
Console.WriteLine("Invalid password!");
i++;
}
else
{
Console.WriteLie("Welcome to my world!");
break;
}
}
解决方案 »
- (100分)遍历xml修改属性
- 怎么用二进制的方式读文件?
- DataGridView 数据刷新问题 注意是winform
- 子窗体控制父窗体的问题,急……
- web里treeview问题?????
- C#.net 水晶报表问题 数据显示不对~ 帮忙解决送100分~~~
- 请问如何在Property内部取得标记它的CustomerAttribute?
- 高分悬赏!!!!!!!!!!!!!!!!!!
- 请问有什么安装程序可以配置windows服务和IIS设置?
- C# Socket服务器和客户端通信问题!!!
- 有哪位兄弟能解决vb6与sql2000搞人事档案数据库时把照片用sql放入数据库中,谢谢了
- 好人们呀,帮我看看,你们通通是好人
a=0
aa:
if password=enterpassword then
print "OK"
goto ok
else
a=a+1
print "Password Wrong!"
if a>2 then end
end if
goto aa
ok:
正确的进入了
a=0
aa:
if password=enterpassword then
print "OK"
goto ok
else
a=a+1
print "Password Wrong!"
if a>2 then end
end if
goto aa
ok:
正确的进入了