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

2021-01-20 15:39

outtextxy(0,10,"This clock is written by lijun"); /*?show the auther */ coss=(int)((r-10)*cos(t.ti_sec*3.14f/30-3.14f/2)+x);

sins=(int)((r-10)*sin(t.ti_sec*3.14f/30-3.14f/2)+y);

cosm=(int)((r-19)*cos(t.ti_min*3.14f/30-3.14f/2)+x);

sinm=(int)((r-19)*sin(t.ti_min*3.14f/30-3.14f/2)+y);

cosh=(int)((r-28)*cos((t.ti_hour+(float)(t.ti_min)/60)*3.14f/6-3.14f/2)+x); sinh=(int)((r-28)*sin((t.ti_hour+(float)(t.ti_min)/60)*3.14f/6-3.14f/2)+y); /* calculate the position of the three points */

setcolor(14);

line(x,y,coss,sins);

setcolor(13);

line(x,y,cosm,sinm);

setcolor(10);

line(x,y,cosh,sinh);

setcolor(15);

/* draw the points */

sleep(1);


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

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

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

马上注册会员

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