12161
来源:互联网 发布:天然气期货交易软件 编辑:程序博客网 时间:2024/06/07 10:55
void choose(int sfd)
{
int comd;
log_interface();
while(1)
{
comd = log_choose();
if(comd == NAMELOG)
{
namelog_interface();
if(namelog(sfd) == NAMELOG_OK)
{
return;
}
}
else if(comd == IDLOG)
{
idlog_interface();
if(idlog(sfd) == IDLOG_OK)
{
return;
}
}
else if(comd == REG)
{
reg_interface();
if(reg(sfd) == REG_OK)
{
security_question(sfd);
return;
}
}
else if(comd == RETRIEVE_PASSWORD)
{
retrieve_interface();
retrieve_password(sfd);
}
else if(comd == EXIT_LOG)
{
endwin();
close(sfd);
exit(1);
}
back_log_interface();
}
}
{
int comd;
log_interface();
while(1)
{
comd = log_choose();
if(comd == NAMELOG)
{
namelog_interface();
if(namelog(sfd) == NAMELOG_OK)
{
return;
}
}
else if(comd == IDLOG)
{
idlog_interface();
if(idlog(sfd) == IDLOG_OK)
{
return;
}
}
else if(comd == REG)
{
reg_interface();
if(reg(sfd) == REG_OK)
{
security_question(sfd);
return;
}
}
else if(comd == RETRIEVE_PASSWORD)
{
retrieve_interface();
retrieve_password(sfd);
}
else if(comd == EXIT_LOG)
{
endwin();
close(sfd);
exit(1);
}
back_log_interface();
}
}
0 0