about c
文章平均质量分 74
nightfox
这个作者很懒,什么都没留下…
展开
-
一个简易的打字速度测量----C编写
#include#include#include#include#define WALL 1 /* 边窗的ASCII码 */#define TIMELIMIT 2 /* 字符下降的速度*/#define BCOLOR BLACK /* 背景的颜色*/#define WCOLOR WHITE /*下降的字符颜色*/in原创 2006-03-06 16:32:00 · 1416 阅读 · 0 评论 -
C-键盘扫描码的输出 TURBOC 2.0
#include#includemain(){ union key { char j[2]; unsigned int i; } bkey; printf(" ------noticed------/n"); printf("the exe is tell you the keys scancode./n"); printf("each key just原创 2006-03-07 21:44:00 · 976 阅读 · 0 评论 -
C-俄罗斯方块 TURBOC 2.0
#include#include#include#include#include#define LEFT 0x4b00#define RIGHT 0x4d00#define DOWN 0x5000#define UP 0x4800#define SPACE 0x3920#define ESC 0x11bint TIMELIMIT;int movekey,INDEX,wherex,wherey,di原创 2006-03-06 18:24:00 · 1273 阅读 · 1 评论 -
C-贪吃蛇-基于字符屏幕80*25 turboc 2.0
#include#include#include#include#include#define MAX_LENGTH 100#define LEFT 0x4b00#define RIGHT 0x4d00#define UP 0x4800#define DOWN 0x5000#define PAUSE 0x1970 /* p key */#define ESC 0x11b#define T原创 2006-03-08 11:11:00 · 1135 阅读 · 0 评论 -
c-简单的阴-阳历转换 turboc 2.0
#include#include struct data { int year1; int specialmonth; int month1[13]; }; struct day{ int year2; int month2; int day2; }; int dis_day1(struct day *op,int *p) { int n=0,x; n+=(op->ye原创 2006-03-06 18:43:00 · 1248 阅读 · 0 评论