while (1) {
if (key!='r')
{
if (key!='q')
{
mvprintw(LINES-2, 1, "Display will refresh in %2d seconds ", t);
refresh();
sleep(1);
t--;
break;
}
else
{
exit (0);
}
}
else
{
return;
}
}
答案 0 :(得分:4)