加载中…
  
博文
标签:

c语言

数组

编程

程序

软件

考试

闹钟程序

闹钟

赋值语句

字符常量

在C语言学习中,很多人对于数组,函数的定义,都觉得难,下面我就通过一个实例:编了一个闹钟程序,来讲解一下。

#include<stdio.h> 
#include <stdlib.h>
#include<time.h>
#include<conio.h>
#include<math.h>
void main() 

int gd=DETECT,gm; 
int x=320,y=240,r=200,i,h,m,s,thetamin,thetasec; 
struct  time t; 
char n[12][3]={'3','2','1','12','11','10','9','8','7','6','5','4'}; 
initgraph(&gd,&gm,'g:\\tc\\bgi');//
图形驱动器路径

  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有