資源簡介
非常用的參考資料,做數據庫課程設計時找到的,現在上傳給給大家分享,順便賺點積分,呵呵

代碼片段和文件信息
#include?“StdAfx.h“
#include?“BookSystem.h“
int?BookSystem::j=5;
int?BookSystem::storage=0;
BookSystem*?BookSystem::t=new?BookSystem;
BookSystem*?BookSystem::re=new?BookSystem;
BookSystem::BookSystem()
{
press_next=NULL;bookname_next=NULL;author_next=NULL;same=NULL;other=NULL;
note[0]=1;note[1]=1note[2]=1ID=0;booknameID=0;
}
BookSystem::~BookSystem()
{
}
void?BookSystem::Set(CString?yCString?mCString?d)
{press=y;bookname=m;author=d;
}
int?BookSystem::ReturnStorage()
{return?storage;}
/////////////////////////////////////////////////////////////////////////////////////////
??//對出版社的坐標鏈表查找
?//J付1說明確實找到了該書名????
?//J不等于1說明確實找不到了該書名????
BookSystem*?BookSystem::Search_Press(CString?sBookSystem*?root)?????????????????????????//對出版社的坐標鏈表查找
{BookSystem*?temp=NULL;
j=3;//先對J設定一個不會沖突的值
if(root->press==s)
{t->press_next=root;j=1;return?root;}??//先看根節點,看其出版設是否是要查找的出版社,是就返回????????????????
if(root->press_next==NULL)//若第一步不成功,看是否還有另外的出版社,若另外的出版社為空。也就是說沒有
{t->press_next=root;j=0;return?root;}??//那么就返回,把J付0???
temp=root->press_next;?//當還存在別的出版社??????????????????????????????????????????
while((temp->press!=s)&&(temp->press_next!=NULL))//再看其出版設是否是要查找的出版社,是就返回??????????
{t->press_next=temp;temp=temp->press_next;}?????????//指向隨后的節點
if(temp->press==s)
{t->press_next=temp;j=1;return?temp;}?????????????????????????????
if(temp->press_next==NULL)
{t->press_next=temp;j=2;return?temp;}????????????
return?temp;
}
/////////////////////////////////////////////////////////////////////////////////////
??//對書名的坐標鏈表查找
BookSystem*?BookSystem::Search_Bookname(CString?sBookSystem*root)
{BookSystem*?temp=NULL;
temp=root;
j=3;
if(root->bookname==s)
{t->bookname_next=root;j=1;return?root;}
if(root->bookname_next==NULL)
{t->bookname_next=root;j=0;return?temp;}
while((temp->bookname!=s)&&(temp->bookname_next!=NULL))
{t->bookname_next=temp;temp=temp->bookname_next;}
if(temp->bookname==s)
{t->bookname_next=temp;j=1;return?temp;}???????????????????????//加1說明確實找到了該書名
if(temp->bookname_next==NULL)
{t->bookname_next=temp;j=2;return?temp;}????????????????????//沒有加1說明找不到該書名,找到了只是該書名前面的一個書名
return?temp;
}
////////////////////////////////////////////////////////////////////////////////////////
??//對作者的坐標鏈表查找
BookSystem*?BookSystem::Search_Author(CString?sBookSystem*?root)
{BookSystem*?temp=NULL;
temp=root;
j=3;
if(root->author==s)
{t->author_next=root;j=1;return?root;}
if(root->author_next==NULL)
{t->author_next=root;j=0;return?t->author_next;}
while((temp->author!=s)&&(temp->author_next!=NULL))
{t->author_next=temp;temp=temp->author_next;}
if(temp->author==s)
{t->author_next=temp;j=1;return?temp;}?????????????????????
else?if(temp->author_next==NULL)
{t->author_next=temp;j=2;return?temp;}?
return?temp;
}
////////////////////////////////////////////////////////////////////////////////////////
??//對類型的坐標鏈表查找,與上面的幾個查找不同,因為這個是基于跳躍鏈表的
BookSystem*?BookSystem::ResearchInsert_Type(BookSystem*?rootBookSys
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????836096??2008-12-31?13:21??C++圖書管理系統代碼及論文\圖書管理系統\圖書信息管理系統正文?.doc
?????文件???????1231??2006-06-23?23:11??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\BookStore\BookStore.txt
?????文件????????390??2006-06-21?23:22??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\BookStore.txt
?????文件??????25156??2006-06-24?10:21??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\BookSystem.cpp
?????文件???????3604??2006-06-23?22:17??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\BookSystem.h
?????文件???????7105??2006-06-23?23:44??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\borrow.cpp
?????文件???????1522??2006-06-23?01:42??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\borrow.h
?????文件????????779??2008-05-08?11:23??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\Client\1.txt
?????文件???????2724??2006-06-23?17:19??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\client.cpp
?????文件???????1247??2006-06-08?21:43??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\client.h
?????文件?????148964??2008-12-24?09:52??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\Debug\BookSystem.obj
?????文件??????33872??2008-12-24?09:52??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\Debug\borrow.obj
?????文件??????26081??2008-12-24?09:52??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\Debug\client.obj
?????文件??????39181??2008-12-24?09:52??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\Debug\decrease.obj
?????文件??????15482??2008-12-24?09:52??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\Debug\keyword.obj
?????文件??????17529??2008-12-24?09:52??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\Debug\manage.obj
?????文件??????19821??2008-12-24?09:52??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\Debug\reinforce.obj
?????文件??????19330??2008-12-24?09:52??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\Debug\returnbook.obj
?????文件?????105451??2008-12-24?09:52??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\Debug\StdAfx.obj
?????文件?????372736??2008-12-21?12:36??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\Debug\vc60.pdb
?????文件?????311373??2008-12-24?09:52??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\Debug\圖書館管理系統.exe
?????文件??????12720??2008-12-24?09:52??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\Debug\圖書館管理系統.obj
?????文件?????599040??2008-12-21?12:36??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\Debug\圖書館管理系統.pdb
?????文件?????114308??2008-06-30?23:10??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\Debug\圖書館管理系統.res
?????文件??????30610??2008-12-24?09:52??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\Debug\圖書館管理系統Dlg.obj
?????文件???????6243??2006-06-23?10:38??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\decrease.cpp
?????文件???????1389??2006-06-23?01:45??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\decrease.h
?????文件???????1318??2006-06-04?09:51??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\keyword.cpp
?????文件???????1177??2006-06-01?09:42??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\keyword.h
?????文件???????1434??2006-06-01?09:57??C++圖書管理系統代碼及論文\圖書管理系統\圖書館管理系統\manage.cpp
............此處省略74個文件信息
- 上一篇:編譯原理語義分析程序 c++實現
- 下一篇:樓盤信息管理系統
評論
共有 條評論