摘要: 1 /******************************************** 2 * 程序名称:MR.DUAN 的贪吃蛇游戏(链表法) 3 * 作 者:WindAutumn 4 * 最后修改:2012-7-25-PM 5 * 版 本 号:1.3 6 * 7 * 8 * 以后有空再修改 9 * *****************************************/ 10 11 #include 12 #include 13 #include 14 #include 15 16 #define MAXWIDE 80 17 ... 阅读全文
posted @ 2013-06-25 12:26 doodle777 阅读(412) 评论(0) 推荐(0) 编辑
摘要: 1 /******************************************** 2 * 程序名称:控制台点灯游戏 3 * 作 者:WindAutumn 4 * 最后修改:2012-7-20 5 * 版 本 号:1.0 6 * *****************************************/ 7 8 #include 9 #include 10 #include 11 12 #define X_PIANYI 4 13 #define Y_PIANYI 2 14 typedef struct 15 { 16 int ... 阅读全文
posted @ 2013-06-25 12:24 doodle777 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 5 typedef struct 6 { 7 int x; 8 int y; 9 }CursorPos; 10 11 int Max_X = 0; // 画布行大小,为清屏做准备 12 int Max_Y = 0; // 画布列大小,为清屏做准备 13 14 void HideCursor(HANDLE hOutput); 15 void GotoXy(HANDLE hOutput, i... 阅读全文
posted @ 2013-06-25 12:21 doodle777 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 1 /* dualview.c -- bit fields and bitwise operators */ 2 #include 3 /* BIT-FIELD CONSTANTS */ 4 /* opaque and show */ 5 #define YES 1 6 #define NO 0 7 /* line styles */ 8 #define SOLID 0 9 #define DOTTED 1 10 #define DASHED 2 11 /* primary colors */ 12 #define BLUE 4 ... 阅读全文
posted @ 2013-06-25 12:19 doodle777 阅读(256) 评论(0) 推荐(0) 编辑
摘要: #include#includeint week(int year, int month);void print(int year, int month);void main(){ int year,month; do { printf("enter year,month (EOF for exit): "); if(scanf("%d%d",&year,&month)==EOF) break; print(year,month); }while(1); system("pause");}int week(int ye 阅读全文
posted @ 2013-06-25 12:16 doodle777 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 1 /* 1、预处理命令及函数变量 */ 2 3 #include 4 #include 5 #include 6 #include 7 #include 8 #define MAX 100 9 10 typedef struct custstock { //用户账户数据 11 char StockCode[6]; //股票代码 12 char StockName[30]; //股票名称 13 long StockVal; //... 阅读全文
posted @ 2013-06-25 12:13 doodle777 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 5 typedef struct student { 6 int number; 7 char name[20]; 8 char faculty[50]; 9 char classes[20]; 10 struct student * link; 11 }STU; 12 13 STU * CreateLink(); 14 void WriteLink(STU *); 15 16 void input(); 17 void del(); 18 void del... 阅读全文
posted @ 2013-06-25 12:10 doodle777 阅读(359) 评论(0) 推荐(0) 编辑