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

📄 main.c

📁 图书管理系统  给予文件的 可以运行的  在MINGW上运行
💻 C
字号:
/* file_name:	main.c
 * author:	wangtiezhen miuliang @ Xidian University
 * description:	
 */

#include <stdio.h>
#include "types.h"
#include "whole_system.c"
#include "stu.c"
#include "login.c"
#include "welcome.c"
#include "books.c"
#include "bb.c"
#include "surface.c"
int main()
{
	int i;
/* Begin:
 * reading stu data;
 */
	printf("Reading stu data");
	
	if((i = readstudent()) != -1){
		printf("\t\t\t\t..Success[%d]\n", i);
	}else{
		printf("\t\t\t\t..Fail\n");
		return -1;
	}
/* End:
 * reading stu data;
 */
//	tree_visit_stu(stubt, print_stu, 1);
	
/* Begin:
 * reading book data;
 */
 	printf("Reading book data");
	i = readbook();
	if(i != -1){
		printf("\t\t\t\t..Success[%d]\n", i);
	}else{
		printf("\t\t\t\t..Fail\n");
		return -1;
	}
//	tree_visit_book(bookbt, print_book, 1);
	
/* End:
 * reading book data;
 */

/* Begin:
 * reading bb data;
 */
 	printf("Reading bb data   ");
	i = readbb();
	if(i != -1){
		printf("\t\t\t\t..Success[%d]\n", i);
	}else{
		printf("\t\t\t\t..Fail\n");
		return -1;
	}
//	tree_visit_bb(bbbt, print_bb, 1);

/* End:
 * reading bb data;
 */


 
 
 
/* Begin:
 * welcome;
 */
	
//	putchar('s');

/* End:
 * welcome;
 */
 
/* Begin:
 * the surface of the system;
 */
	
//在这里调用你的主函数 main_surface();
//	
	
	
	flag_type flag = sys_in;
	while(flag != sys_close){
		printf("login:");
		if(login() == NULL){
			printf("Check your input,please!\n");
			continue;
		}else{
			welcome();
		}
		
		flag = main_surface();
		
	}
	
	
	
	
	
	
	
/* End:
 * the surface of the system;
 */
 	printf("the system is closing.");
 	
// 	super_write();
 	
	super_destory((void**)&bookbt, book);
	super_destory((void**)&stubt, stu);
	super_destory((void**)&bbbt, bb);
	printf("\t\t\t\t..[success]");
	
	return 0;
}



⌨️ 快捷键说明

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