⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 head.h

📁 我自己用C语言做的图书管理系统
💻 H
字号:
 /* c1.h (程序名) */
 #include<string.h>
 #include<ctype.h>
 #include <conio.h>
 #include<malloc.h> /* malloc()等 */
 #include<limits.h> /* INT_MAX等 */
 #include<stdio.h> /* EOF(=^Z或F6),NULL */
 #include<stdlib.h> /* atoi() */
 #include<io.h> /* eof() */
 #include<math.h> /* floor(),ceil(),abs() */
 #include<process.h> /* exit() */
 /* 函数结果状态代码 */
 #define TRUE 1
 #define FALSE 0
 #define OK 1
 #define ERROR 0
 #define INFEASIBLE -1

/* 本程序所用到的预定义 */
#define MAX 1
#define N 3 
#define PAGE 2 
#define PRINT1 printf("-------------------------------------------------\n") 
#define PRINT2 printf(" \n编号----------书名----------作者---------出版社-------现存数量------总库存数量\n") 
#define PRINT3 printf("%4d%15s%15s%18s%10d%12d\n\n",book[i].num,book[i].name,book[i].writer,book[i].chubanshe,book[i].amount,book[i].totalamount) 
#define PRINT4 printf("\n卡号------------姓名-----------班级:\n");
int sum=20; /*用来记录图书种类*/ 

/*图书结构体类型*/ 
struct book_type 
{ 
   int num; //
   int amount; 
   char name[15]; 
   char writer[15]; 
   char chubanshe[15];
   int totalamount;
    
} 
book[MAX]; /*存放MAX种记录的结构体数组*/ 

struct student /*定义学生类型,用于存放借出的书籍*/ 
{ 
  int carnum; 
  char lendbook[10]; 
}student[100]; 

struct car /*借书卡的数据类型*/ 
{ 
  
  int carnum; 
  char studentname[10]; 
  int studentclass; 
}car[100];

 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -