摘要: #include <windows.h>#include <conio.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#define EmFile "C:\\zm.txt" //密码帐号文件名#define N 3#define TEMP 2#define TRUE 1#define FALSE 0int shoudsave=0 ;int count1=0,count2=0,mark=0,mark1=0 ;struct train { char 阅读全文
posted @ 2012-11-27 21:04 hqcao 阅读(270) 评论(0) 推荐(0) 编辑
摘要: /* SPACE 32 暂停key_left 75 向左 key_right 77 向右key_up 72 向上 key_down 80 向下ESC 27 退出用队列存储蛇,主要入队列,出队列*/#include <stdio.h>#include <conio.h>#include <stdlib.h>#include <windows.h>#include <time.h>#define MAX__X 25#define MAX__Y 25#define MAX_FOOD 30#define N 25typedef struct 阅读全文
posted @ 2012-11-26 16:52 hqcao 阅读(248) 评论(0) 推荐(0) 编辑
摘要: //本程序主要采用链表,结合文件的操作实现 #include<stdio.h> #include<dos.h> #include<conio.h> #include<stdlib.h>#include<string.h>#include<mem.h> #include<ctype.h>#include<malloc.h>typedef struct GZ { char no[11]; //编号 char name[15]; //姓名 float jbgz; //基本工资 float koukuan; 阅读全文
posted @ 2012-11-25 21:23 hqcao 阅读(358) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>#include<string.h>#define NUM 2struct item{char brand[20];//商品名称 char id[10];//商品编号 float in_price;//进货价格 float out_price;//售货价格 int Inamount; //进货量int Outamount;//剩余量 };struct item_node{struct item wanted;int amount;struct item_node *next;};int m 阅读全文
posted @ 2012-11-22 23:11 hqcao 阅读(497) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>#include<string.h>#define NUM 2//为了方便,这里限制两个商品struct item{char brand[20];//商品名称 char id[10];//商品编号 float in_price;//进货价格 float out_price;//售货价格 int Inamount; //进货量int Outamount;//剩余量 };struct item_node{struct item wanted;int amount;struct item_nod 阅读全文
posted @ 2012-11-22 09:38 hqcao 阅读(141) 评论(0) 推荐(0) 编辑
摘要: //本程序主要用到结构和文件的基本操作。 //很实用的小程序 #include <stdio.h>#include <stdlib.h>#include <string.h>struct cash {long id;//事件的id号 char date[11];//事件的发生日期 char note[15];//事件的名称 double charge;//支出或收入的金额 double balance;//现在的所剩金额 };long size;void menu();//选择菜单long getcount(FILE *fp);//返回事件的个数 void 阅读全文
posted @ 2012-11-21 15:39 hqcao 阅读(203) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <stdlib.h>#include <string.h>#include <conio.h>#include <windows.h>typedef struct student/*定义学生信息结构体*/{char num[10];char name[15];int cgrade;int mgrade;int egrade;int total;float ave;int mingci;};typedef struct node{struct student date;//数据域st 阅读全文
posted @ 2012-11-20 20:20 hqcao 阅读(365) 评论(0) 推荐(0) 编辑
摘要: 面试的几家公司,都没成,在学校招聘会上的一家科大国创,在最后面试的时候让我转java方向,当时没同意。一直坚持的C/C++方向的我就这样和这次工作机会说拜拜了。在智联招聘上投了好多家,有一家去笔试,当场也面试了,当我把简历给面试官的时候,面试官说了一句:你是应届生啊??我一听这就没戏了。面试了将近20分钟。让我等通知,就没戏了。。。。。没有工作经验啊,这几天决定吧大学这几年自己写的小程序放在博客里,以后找工作备用。 阅读全文
posted @ 2012-11-20 14:43 hqcao 阅读(199) 评论(0) 推荐(0) 编辑