计算机等考二级C语言学习要领(4)

2021-01-20 15:39

int x=300,y=160,r=40;

clrscr();

gdriver=9; gmode=1;

initgraph(&gdriver,&gmode,"a:\\");/*需要说明的是,第三个参数a:\\是egavga.bgi这个文件的路径*/ /* install the graphic device.the third parameter is the path of the driver*/

setbkcolor(0);

setcolor(WHITE);

while(1)

{

circle(x,y,r);/*paintthecircle*/

line(x,y+r-10,x,y+r-12);

line(x+r-4,y,x+r,y);

line(x-r,y,x-r+4,y);

line(x,y-r+10,x,y-r+10+2); /* draw the fout scales */

gettime(&t);

sprintf(s,"The current time is %2d:%02d:%02d\n",t.ti_hour,t.ti_min,t.ti_sec,t);

outtextxy(0,0,s); /* out put the current time */


计算机等考二级C语言学习要领(4).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:电光调制器的温度特性及其最优化设计3

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: