# include & ltstdio.h & gt
# include & ltstdlib.h & gt
# include & ltstring.h & gt
//這個部分聲明了壹個名為book的結構,用來存儲壹本書的圖書信息。
結構書{
//書籍名稱
char book _ name[30];
//書的編號
int邊號;
//書籍的價格
雙倍價格;
//這本書的作者
char作者[20];
//當前圖書的庫存狀態
充電狀態[20];
//這本書借給了壹個叫name的人。
char name[20];
//這些書借給男人還是女人?
char sex[10];
//書籍借給有學號的同學。
int雪豪;
//這個字段是指向圖書結構的指針,表示作者想用鏈表來存儲或操作所有的圖書信息。
struct book * book _ next
};
//借款人的個人信息(類似這樣)
結構俱樂部{
char name[20];
char sex[10];
int雪豪;
//借書的書名
char借〔30〕;
//鏈表指針
struct club * club _ next
};
void Print _ Book(struct Book * head _ Book);/*瀏覽所有圖書信息*/
void Print_Club(結構俱樂部*頭俱樂部);/*瀏覽所有成員信息*/
struct Book * Create _ New _ Book();/*新建壹個庫,書號為0時結束*/
//根據給定的書號查找圖書信息。
struct Book * Search _ Book _ bian Hao(int bian Hao,struct Book * head _ Book);
//根據給定的圖書名稱查找圖書信息。
struct Book * Search _ Book _ name(char * b _ name,struct Book * head _ Book);
//根據給定的圖書價格查找圖書信息。
struct Book * Search _ Book _ price(double price _ h,double price_l,struct Book * head _ Book);
//在鏈表中插入壹個新節點。
struct Book * Insert _ Book(struct Book * head _ Book,struct Book * stud _ Book);/*逐壹添加書籍*/
//刪除鏈表中的壹個節點。
struct Book * Delete _ Book(struct Book * head _ Book,int bianhao);/*刪除書籍*/
//創建新的借款人信息結構
struct Club * Create _ New _ Club();
//根據給定的學號找到借款人的信息。
struct Club * Search _ Club _ xuehao(int xuehao,struct Club * head _ Club);
//根據給定的借款人姓名,查找借款人信息。
結構俱樂部*搜索_俱樂部_名稱(char * c _名稱,結構俱樂部*頭_俱樂部);
//在借款人信息鏈表中插入壹個新節點。
struct Club * Insert _ Club(struct Club * head _ Club,struct Club * stud _ Club);
//刪除借款人信息鏈表中的節點。
struct Club * Delete _ Club(struct Club * head _ Club,int學號);
//借壹本書
struct Book * Lent _ Book(int bian Hao,int xuehao,struct book *head_book,struct club * head _ club);
//還書
struct book *back(int bianhao,int xuehao,struct book *head_book,struct club * head _ club);
//控制臺程序入口點函數
int main()
{
//接下來,這裏有很多變量要創建。
結構書*頭_書,* p _書;
char book_name[30],姓名[20],作者[20],性別[10];
int邊號;
雙倍價格,price_h,price _ l;
int size _ book = sizeof(struct book);
int m=1,n=1,f;
char *b_name,* c _ name
struct俱樂部*head_club,* p _ club
int雪豪;
int size _ club = sizeof(struct club);
全體動手,希望能幫到樓主。