91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

用c語言寫的圖書管理系統(tǒng),數(shù)據(jù)結構課程設計,單鏈表。 源碼絕對能執(zhí)行的,而且有詳細注釋,應該有的操作都有,初始化,排序,插入,錄入,查找,刪除,都有,功能俱全。

資源截圖

代碼片段和文件信息

#include?“stdafx.h“
#include
#include
#include//頭文件
#define?null?0//定義null表示0即空
typedef?struct?book{//結構體book用來存儲圖書信息
int?number;//書號
char?title[20];//書名
char?writer[8];//作者
char?publishinghouse[20];//出版社
float?pricing;//價錢
struct?book?*next;//指針域
}book*Library;//Library為指向book類型結點的指針類型
Library?LibraryInit()//鏈表初始化(建立一個帶頭結點的空單鏈表)
{
Library?l;
l=(book?*)malloc(sizeof(book));//申請空間
l->next?=null;
printf(“\n\n------------------圖書館當前記錄為空!------------------\n“);
return?l;}
void?save(Library?l)//保存記錄到文本文件data中
{
??Library?p;
?FILE?*fp;//文件指針
?p=l;
?fp=fopen(“data.txt““w+“);?//以寫方式新建并打開?data.txt文件w+是重寫
?fprintf(fp“┣━━━━━━╋━━━━━━━━╋━━━━━━╋━━━━━━━━╋━━━━┫\n“);?
?fprintf(fp“┃?書??????號?┃???書????名?????┃??作????者??┃????出?版?社????┃?價??

評論

共有 條評論

相關資源