- 注册时间
- 2005-8-18
- 最后登录
- 1970-1-1
|
void numOut(int x,int y,int n,int type)
{
int m,x1,y1,mod,charLong;
long i;
m=n;
x1=x;
y1=y;
i=1000000000;
if (type-128>=0) charLong=3;
else charLong=5;
if (m<0)
{
TextOut(x1,y1,"-",type);
x1=x1+charLong;
m=0-m;
}
do
{
mod=m-(m/i)*i;
i=i/10;
if (mod==1) TextOut(x1,y1,"1",type);
if (mod==2) TextOut(x1,y1,"2",type);
if (mod==3) TextOut(x1,y1,"3",type);
if (mod==4) TextOut(x1,y1,"4",type);
if (mod==5) TextOut(x1,y1,"5",type);
if (mod==6) TextOut(x1,y1,"6",type);
if (mod==7) TextOut(x1,y1,"7",type);
if (mod==8) TextOut(x1,y1,"8",type);
if (mod==9) TextOut(x1,y1,"9",type);
if (mod!=0) x1=x1+charLong;
}
while (m!=0)
}
long iBoxNum()
{
int iBoxNum_Key;
ClearScreen();
Refresh();
do
{
Rectangle(40,33,120,47,1);
Rectangle(38,31,122,49,1);
TextOut(40,33,"大字体",0x81);
iBoxNum_Key=getchar();
}
while (iBoxNum_Key!=13);
}
void main()
{
int a;
long c;
a=11111;
c=100000;
a=a%c;
printf("%d",a);
numOut(1,1,a,64);
a=getchar();
}
在LavaIDE Ver0.9上通过
模拟时出错"gvmakerstar.exe 遇到问题需要关闭。我们对此引起的不便表示抱歉。"
WQXNc3K上,直接死机?
|
|