QQ通讯录
效果演示
public void start() {
Console.WriteLine("程序启动了,这是start方法");
int res = 0;
// 只有三次错误机会,三次用完了就不让你再登陆了
int i = 1;
while(res ==0 && i <= 3){
// 让计数器加1
i++;
// 实现登陆功能
res = login();
// 是否显示主菜单
if (res == 1)
{
while (true) {
String choice=runApp();
if(choice.Equals("q")){
break;
}
}
}
}
Console.WriteLine("离开了循环");
}
public bool login()
{
bool reaf=false;
Console.Wri