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

資源簡介

今天剛完成的課程設計,好累呀!小型數(shù)據(jù)庫管理(模擬)系統(tǒng):通訊錄系統(tǒng) //或者:人員(學生)管理系統(tǒng)要求建立一個簡潔完備的通訊錄,內(nèi)容可以保存在內(nèi)存中也可以保存在磁盤中(但要維持數(shù)據(jù)的一致性)。要求能夠?qū)崿F(xiàn)(插入,刪除,搜索,排序,外部存儲:保證數(shù)據(jù)動態(tài)維護與一致性)等功能。①(1) 選用線性表(靜態(tài)表/動態(tài)表 Array or linked list : 單向鏈表/雙向鏈表/雙向循環(huán)鏈表)②(2) 非線性結(jié)構(gòu)實現(xiàn): 二叉搜索樹(Binary Search Tree)③(3) 非線性結(jié)構(gòu)實現(xiàn): AVL樹④(4) 非線性結(jié)構(gòu)實現(xiàn): 哈希表(散列)Hashtable

資源截圖

代碼片段和文件信息

#include?“b.h“
#include?
#include?
#include?
//#include?
//#include?
void?stulist::MakeEmpty()
{
student?*p1;//定義一個指針,指向student。
while?(head->next!=NULL)?
{
p1=head->next;//
head->next=p1->next;
delete?p1;
}
p1=head;
count=0;
}
void?stulist::add(char?*valuechar?*saluechar?*adlint?chinint?maint?eng)//將新學生value插入到最后
{
student?*newstu;
newstu=new?student(valuesalueadlchinmaeng);
while(p->next!=NULL)
p=p->next;//經(jīng)過while循環(huán)之后,p指向鏈尾
/*************
newstu->next=p->next;
// p=p->next=newstu;
p->next=newstu;p=p->next;
/*********************/
p->next=newstu;
newstu->number=count+1;
count++;
cout<}
/*********在學號no的學生之前插入一個新學生*******************/
void?stulist::insert(int?nochar?*valuechar?*saluechar?*adlint?chinint?maint?eng)
{
student?*newstu;
student?*node=head;
newstu=new?student(valuesalueadlchinmaengno);
while?(node->next!=NULL)?{
if(node->number==no-1)
break;
node=node->next;
}
/************************
newstu->next=node->next;
newstu->number=no;
node=newstu;
newstu->next=node->next;
/*********************************/
newstu->next=node->next;
newstu->number=no;
node=node->next=newstu;//
/*************************/
student?*p=node->next;
while?(p!=NULL)?
{
p->number++;
p=p->next;
}
count++;
cout<}
void?stulist::remove(int?no)//刪除元素value后面的學生學號依次加1
{
??????student?*p1*q;
??????q=head->next;
??????while(q!=NULL)
??????{
??????????if(q->number==no)break;
??????????q=q->next;
??????}
??????if(q==NULL)
??????{
??????????cout<<“沒找到學號為“<??????????return;
??????}
??????p1=head;
??????while(p1!=NULL)//找到q的前一個節(jié)點p
??????{
??????????if(p1->next==q)break;
??????????p1=p1->next;
??????}
??????p1->next=q->next;
??????delete?q;
??????count--;
????
??????p1=p1->next;
??????while(p1!=NULL)
??????{
??????????p1->number--;
??????????p1=p1->next;
??????}
// ??print_name(no);
??????cout<<“學號為“<}
void?stulist::print()//輸出鏈表
{
??????student?*p2;
??int?average=0;
??????if(head->next==NULL)//鏈表為空
??????{
??????????cout<<“沒有任何信息“<??????????return;
??????}
??????cout<<“學號“<??????p2=head->next;
// ??average=((p2->chinese+p2->english+p2->math)/3);//平均分
??????while(p2->next!=NULL)
??????{
??average=((p2->chinese+p2->english+p2->math)/3);//平均分
??????????cout<number<name<sex<add;
??cout<chinese<math<english<??????????p2=p2->next;
??????}
??average=((p2->chinese+p2->english+p2->math)/3);
????cout<number<name<sex<add;
??cout<chinese

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件????????827??2008-01-17?01:08??student\a.h

?????文件???????7090??2008-01-17?12:39??student\b.cpp

?????文件???????1058??2008-01-17?03:30??student\b.h

?????文件??????33625??2008-01-17?12:39??student\Debug\b.obj

?????文件??????22521??2008-01-17?13:29??student\Debug\main.obj

?????文件?????233524??2008-01-17?13:29??student\Debug\student.exe

?????文件?????285592??2008-01-17?13:29??student\Debug\student.ilk

?????文件??????43520??2008-01-17?10:11??student\Debug\student.opt

?????文件????1315304??2008-01-17?13:29??student\Debug\student.pch

?????文件?????607232??2008-01-17?13:29??student\Debug\student.pdb

?????文件??????99328??2008-01-17?15:00??student\Debug\vc60.idb

?????文件?????102400??2008-01-17?13:29??student\Debug\vc60.pdb

?????文件??????????0??2008-01-16?16:15??student\f1.dat

?????文件???????3840??2008-01-17?13:29??student\main.cpp

?????文件????????560??2008-01-17?01:07??student\Menu.h

?????文件????????164??2008-01-17?12:46??student\s1.txt

?????文件???????4522??2008-01-15?22:59??student\student.dsp

?????文件????????539??2008-01-15?22:59??student\student.dsw

?????文件??????66560??2008-01-17?15:03??student\student.ncb

?????文件??????49664??2008-01-17?15:03??student\student.opt

?????文件????????248??2008-01-17?15:00??student\student.plg

?????文件????????173??2008-01-17?11:18??student\students.txt

?????文件??????96256??2008-01-17?15:08??student\雷湘強大型試驗報告.doc

?????目錄??????????0??2008-01-17?13:29??student\Debug

?????目錄??????????0??2008-01-17?15:11??student

-----------?---------??----------?-----??----

??????????????2974547????????????????????25


評論

共有 條評論