博文
图书管理程序(2)(2006-01-03 11:14:00)
摘要:#include<stdio.h>#include<string.h>#include<conio.h>#include<stdlib.h>#include<ctype.h>#define STACK_INIT_SIZE 10#define OK 1#define TRUE 1#define FALSE 0#define ERROR 0struct student /*定义学生类型,用于存放借出的书籍*/{int carnum;char lendbook[10];}student[1000];struct employ /*定义职工类型*/{int employnum;char employname[15];int employage;char employsex[2];char employleve[10];long int employtage;}employ[50];struct book /*定义书的类型*/{int booknum;char bookname[10];char bookcreat[10];int turefalse; /*用于借书和还书模块判断一本书是否借出的条件*/}book[1000];struct car /*借书卡的数据类型*/{int carnum;char studentname[10];int studentclass;}car[100];
huanbook() ......
C语言问题资料大全 转贴(2006-01-03 09:46:00)
摘要:1 【 C 语言吧 · 问题资料大全 】 注意: 1.这里会尽量搜集所有问题,定时更新,有问题请先查阅这里. 2.为方便查阅,请不要在此问问题,此类贴将被删除,不另通知. 3.希望这里成为大家学习 C 的好帮手.
2 ■■■■■■■____本吧相关____■■■■■■■ ★本吧推荐的几个C编译器:http://post.baidu.com/f?kz=2769360 ◆本吧代码格式编辑器:http://post.baidu.com/f?kz=9364381 ◆本吧代码中显示?:http://post.baidu.com/f?kz=5054984
4 ■■■■■■■____学习资料____■■■■■■■ ◆搜索答案与提问的秘诀:http://post.baidu.com/f?kz=6602487 ◆C 语言学习看什么书:http://post.baidu.com/f?kz=5728013 ◆如何学好c语言:http://post.baidu.com/f?kz=8642778 ◆学 C 容易出错的地方: http://post.baidu.com/f?kz=4275539 ◆C程序易犯错误:http://post.baidu.com/f?kz=12428951 ◆几种排序算法:http://post.baidu.com/f?kz=5633380 ◆几个经典字符串Hash函数:http://post.baidu.com/f?kz=5662514 ◆100,000素数表:http://post.baidu.com/f?kz=5663116 ◆C99 的语言新特性:http://post.baidu.com/f?kz=4784366 ◆深入理解C语言指针的奥秘:http://post.baidu.com/f?kz=5932198 ◆ISO-c99标准英文全文(pdf格式):http://www.nirvani.net/docs/ ◆C 的文件操作:http://post.baidu.com/f?kz=5877273 ◆字符屏幕函数:http://post.baidu.com/f?kz=6001621 ◆C的运算符:http://post.baidu.com/f?kz=8512815 ◆图......
图书管理系统程序(1)(2005-12-20 21:54:00)
摘要:/*13. book.c源程序*/#include #include #include #include #include #include #define LEFT 0x4b00 /*左*/#define RIGHT 0x4d00 /*右*/#define DOWN 0x5000 /*下*/#define UP 0x4800 /*上*/#define SPACE 0x3920 /*空格*/#define ESC 0x011b /* ESC键*/#define ENTER 0x1c0d /*回车键*/#define Backspace 0xe08 /*擦除键*/#define ALT_B 12288 /*组合键ALT_B */#define ALT_M 12800/*组合键ALT_M */#define ALT_H 8960/*组合键ALT_H */int key;/*按键变量*/int textx,texty;/*光标坐标,x行,y列*/struct menustruct/*菜单用的结构体*/{ char name[10];/*主菜单名*/ char str[10][20];/*选项*/ int n;/*选项数*/}ml[3];/*使用了3个,可根据需要增删*/typedef struct BookList/*书的结构体*/{ char num[20];/*图书编号*/ char name[20];/*书名*/ int price;/*书的价格*/ char person[20];/*借阅人*/ int yes;/*判断书是否存在或者已经借出,1存在,0借出*/ struct BookList *next;}Book;typedef struct MemberList/*会员的结构体*/{ char name[20];/*会员的姓名*/ char sex[2];/*会员的性别*/ int age;/*会员的年龄*/ struct MemberLi......
礼花(2005-12-20 21:52:00)
摘要:#include "Conio.h"#include "graphics.h"#include "stdio.h"#include "stdlib.h"#include "bios.h"#include "math.h"
struct cir /*存放礼花的位置*/{ int x; int y;}place;
void initgr(void) /* BGI初始化 */{ int gd=DETECT,gm=0; initgraph(&gd,&gm,"");}
void up() /*礼花炮上升*/{ int aimy; randomize(); place.x=random(440)+100; /*设定礼花的范围*/ place.y=470; aimy=random(300)+60; setlinestyle(0,0,1); setcolor(WHITE); circle(place.x,place.y,3); while(place.y!=aimy) /*礼花的上升过程*/ { setcolor(BLACK); circle(place.x,place.y,3); place.y--; setcolor(WHITE); circle(place.x,place.y,3); delay(1000); } setcolor(BLACK); &nbs......
