c语言闹钟程序源代码,用c语言实现的立体闹钟源代码

这是用c语言开发的一个小闹钟模型,只是还没有运转起来,另外设置闹钟功能也没有完善,待以后有时间自会补上,暂时先发布一下其界面代码吧!呵呵...

#include "graphics.h"

#include "time.h"

#include "math.h"

#include "dos.h"

#include "stdio.h"

#include "bios.h"

#define PI 3.14569

void sounder();

void bibin();

void main()

{

int gd=DETECT,gmode;

time_t start;

time_t finish;

time_t now;

struct tm *ptr;

char *c,buf1[80],h[3],m[3],s[3];

double duration;

int i=0,j,k,x,y,xm,ym,xh,yh;

initgraph(&gd,&gmode,"");

clrscr4();

setfillstyle(SOLID_FILL,BLUE);

bar3d(170,100,470,400,10,1);

setcolor(GREEN);

circle(320,250,100);

circle(320,250,125);

circle(320,250,1);

circle(320,250,7);<

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值