写可参照以下代码:Р#include "stdio.h"Р. main()Р{ char c;Р int i;Р doР {Р clrscr();Р for(i=0;i<80;i++)Р printf("*");Р printf("\t 1: add books\n");Р printf("\t 2: list books\n");Р printf("\t 3: sreach books\n");Р printf("\t 4: borrow books\n");Р printf("\t 5: return books\n");Р printf(“\t6: exit\n”)Р printf("\t请选择输入选项[1\\2\\3\\4\\5\\6]:\n");Р doР {Р c=getchar();Р }while(c!='1'&&c!='2'&&c!='3'&&c!='4'&&c!='5'&&!=’6’);Р getchar();Р switch(c)Р { case '1': input(); break;Р case '2': del(); break;Р case '3': find(); break;Р case '4': arrange(); break;Р case ‘5’: right(); break;Рcase '6': exit(0);Р }Р printf(" 按任意键返回主菜单:\n");Р getchar();Р clrscr();Р }while(1);Р }Р#include <stdio.h>Р#include <stdlib.h>Р#include <string.h>Р#define BORROWED 1Р#define NOBORROW 0Р/* 定义图书结构*/Рstruct BookР{Р int _id;