[code=c]
void err(int code)
{
setviewport(130,100,400,350,1);
setfillstyle(1,10);
rectangle(130,100,400,350);
floodfill(140,200,14);
settextjustify(LEFT_TEXT,TOP_TEXT);
settextstyle(1,HORIZ_DIR,1);
setcolor(15);
outtextxy(50,10,"ERROR WARN");
if(code==1)
{
outtextxy(10,55,"I am sorry: your command");
outtextxy(10,85,"is meaningless! Please see");
outtextxy(10,115,"the HELP TABLE or input");
outtextxy(10,145,"\"help\" for more helps.");
}
else if(code==2)
{
outtextxy(10,55,"I am sorry: your command");
outtextxy(10,85,"is meaningless! Please see");
outtextxy(10,115,"the HELP TABLE or input");
outtextxy(10,145,"\"help\" for more helps.");
}
else if(code==3)
{
outtextxy(10,55,"I am sorry: your command");
outtextxy(10,85,"is meaningless! Please see");
outtextxy(10,115,"the HELP TABLE or input");
outtextxy(10,145,"\"help\" for more helps.");
}
bioskey(0);
clearviewport();
setviewport(0,0,639,479,0);
cleardevice();
inittuto();/*生成主工作界面*/
}
[/code]很诡异的发现,当err()执行后按一次键那个err绿框不会消失(按道理说bioskey(0);
clearviewport();
setviewport(0,0,639,479,0);
cleardevice();
inittuto();/*生成主工作界面*/
会使它消失的),跟诡异的是按两次主标题右移了,按第三次键程序死了
谁能告诉我是什么问题啊?