标题:很诡异的发现
只看楼主
personalbest
Rank: 1
等 级:新手上路
帖 子:19
专家分:0
注 册:2007-4-10
 问题点数:0 回复次数:3 
很诡异的发现




[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();/*生成主工作界面*/
会使它消失的),跟诡异的是按两次主标题右移了,按第三次键程序死了
谁能告诉我是什么问题啊?

搜索更多相关主题的帖子: command sorry 
2007-06-11 23:28
hb2137
Rank: 1
等 级:新手上路
帖 子:28
专家分:0
注 册:2007-6-12
得分:0 
怎么有好多的函数找不到?

[此贴子已经被作者于2007-6-12 0:41:04编辑过]


2007-06-12 00:39
personalbest
Rank: 1
等 级:新手上路
帖 子:19
专家分:0
注 册:2007-4-10
得分:0 
以下是引用hb2137在2007-6-12 0:39:55的发言:
怎么有好多的函数找不到?

图形模式下编程,要用到graphic。h里的函数


2007-06-12 10:13
hb2137
Rank: 1
等 级:新手上路
帖 子:28
专家分:0
注 册:2007-6-12
得分:0 

显得我好菜....


2007-06-12 11:17



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-146672-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.673742 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved