数据结构信息管理课程设计
① 数据结构课程设计 通讯录信息系统的管理
貌似是要创建链表,插入功能就是在链表中插入节点,然后修改前后指针分别指向前一个版节点和后一个节点,权当然,前一个节点的后向指针和后一个节点的前向指针都要相应修改;删除时直接将前一个节点的后向指针指向后一节点,后一节点的前向指针指向前一节点,中间节点所占的空间释放即可;
查询时从头开始遍历所有节点即可,设置一个游标,当其不等于传入的参数值时继续查询,知道查到位置;
输出就是在查询的基础上在屏幕显示即可
具体记不清了,不知道你能不能看懂
② 数据结构课程设计 图书管理系统
#include<stdio.h>
#include<string.h>
#include<conio.h>
#include<stdlib.h>
#define N sizeof(struct book)
#define PT "%-5d %10s %6s %6s %8s %3d \n",p->num,p->name,p->where,p->author,p->pub,p->count
struct book /*图书信息*/
{
int num; /*书号*/
char name[10]; /*书名*/
char where[10]; /*所在书库*/
char author[15]; /*作者*/
char pub[20]; /*出版社*/
int count; /*数量*/
struct book *next;
};
/*输出模块*/
void print(struct book *p0)
{
struct book *p;
p=p0->next;
printf("\n\n\t\t^^^^^^^^^^^^^^图书信息表^^^^^^^^^^^^^^");
printf("\n\n图书编号---图书名称---所在书库----作者----出版社---数量\n");
while(p!=NULL)
{
printf(PT);
p=p->next;
}
getch();
}
/*输入模块*/
struct book *creat()
{
struct book *head,*p1,*p2;
int i=0;
head=p2=(struct book *)malloc(N);
head->next=NULL;
printf("\n\n\t\t录入图书信息");
printf("\n\t---------------------------------------");
while(1)
{ p1=(struct book *)malloc(N);
printf("\n 请输入图书编号(书号为0结束): ");
scanf("%d",&p1->num);
if(p1->num!=0)
{
printf("\n\n书名 所在书库 作者 出版社 图书数量\n");
scanf("%s%s%s%s%d",p1->name,p1->where,p1->author,p1->pub,&p1->count);
p2->next=p1;
p2=p1;
i++;
}
else
break;
}
p2->next=NULL;
free(p1);
printf("\n\t\t----------------------------------------");
printf("\n\t\t %d 种书录入完毕",i);
getch();
return head;
}
/*查找模块*/
void find(struct book *p0)
{
char name[10];
int flag=1;
struct book *p;
p=p0->next;
printf("请输入要查找的书名:\n");
scanf("%s",name);
for(p=p0;p;p=p->next)
if(strcmp(p->name,name)==0)
{
printf("\n\n图书编号---图书名称---所在书库----作者----出版社---数量\n");
printf(PT);
flag=0;
break;
}
if(flag) printf("\n 暂无此图书信息\n");
getch();
}
/*删除模块*/
void del(struct book *p0)
{
char name[10];
int flag=1;
struct book *p;
p=p0;
printf("请输入要删除的书名:\n");
scanf("%s",name);
while(p!=NULL)
{
if(strcmp(p->name,name)==0)
{
p0->next=p->next; /*后续节点连接到前驱节点之后*/
free(p);
printf("\t该书资料已删除.");
flag=0;
break;
}
p0=p;
p=p->next;
}
if(flag) printf("\n\t无此图书信息。");
getch();
}
/*增加模块*/
void insert(struct book *p0)
{
struct book *p;
p=(struct book *)malloc(N);
while(1)
{
printf("\n 请输入要增加的图书编号(书号为0 退出): ");
scanf("%d",&p->num);
if(p->num!=0)
{
if(p0->next!=NULL&&p0->next->num==p->num) /*找到重号*/
{
p=p->next;
free(p);
printf("\t该书已存在");
}
else
{printf("\n\n书名 所在书库 作者 出版社 图书数量\n");
scanf("%s%s%s%s%d",p->name,p->where,p->author,p->pub,&p->count);
p->next=p0->next;
p0->next=p;
printf("\t已成功插入.");
}
}
else
break;
}
getch();
}
/*修改模块*/
void modify(struct book *p0)
{
char name[10];
int flag=1;
int choice;
struct book *p;
p=p0->next;
printf("请输入要修改的书名:\n");
scanf("%s",name);
while(p!=NULL&&flag==1)
{
if(strcmp(p->name,name)==0)
{
printf("\n\t请选择要修改的项:");
printf("\n\t 1.修改图书编号\n");
printf("\n\t 2.修改图书所在书库\n");
printf("\n\t 3.修改图书作者\n");
printf("\n\t 4.修改图书出版社\n");
printf("\n\t 5.修改图书库存量\n");
scanf("%d",&choice);
switch(choice)
{
case 1: { printf("\n 请输入新的图书编号:");
scanf("%d",p->num); break;
}
case 2: { printf("\n 请输入新的图书书库:");
scanf("%s",p->where); break;
}
case 3: { printf("\n 请输入新的图书作者:");
scanf("%s",p->author); break;
}
case 4: {printf("\n 请输入新的图书出版社:");
scanf("%s",p->pub); break;
}
case 5: {printf("\n 请输入新的图书库存量:");
scanf("%d",p->count); break;
}
}
printf("\n\t该项已成功修改。\n\t 新的图书信息:");
printf("\n\n图书编号---图书名称---所在书库----作者----出版社---数量\n");
printf(PT);
flag=0;
}
p0=p;
p=p0->next;
}
if(flag) printf("\n\t暂无此图书信息。");
getch();
}
/*读文件*/
struct book *read_file()
{
int i=0;
struct book *p,*p1,*head=NULL;
FILE *fp;
if((fp=fopen("library.txt","rb"))==NULL)
{printf("\n\n\n\n\n \t********库文件不存在,请创建!**********");
getch();
return NULL;
}
head=(struct book *)malloc(N);
p1=head;
head->next=NULL;
printf("\n 已有图书信息:");
printf("\n\n图书编号---图书名称---所在书库----作者----出版社---数量\n");
while(!feof(fp))
{
p=(struct book *)malloc(N); /*开辟空间以存放的取得信息*/
while(fscanf(fp,"%d%s%s%s%s%d",&p->num,p->name,p->where,p->author,p->pub,&p->count)!=EOF)
{
printf(PT);
i++;
}
p1->next=p;
p1=p;
}
p1->next=NULL;
fclose(fp);
printf("\n 共种%d 图书信息",i);
printf("\n\n\n 文件中的信息以正确读出。按任意键进入主菜单。");
getch();
return (head);
}
/*保存文件*/
void save(struct book *head)
{
FILE *fp;
struct book *p;
fp=fopen("library.txt","wb"); /*以只写方式打开二进制文件*/
if(fp==NULL) /*打开文件失败*/
{
printf("\n=====>打开文件失败!\n");
getch();
return ;
}
else
for(p=head->next;p!=NULL;p=p->next)
fprintf(fp,"%d %s %s %s %s %d\n",p->num,p->name,p->where,p->author,p->pub,p->count);
fclose(fp);
printf("\n\t保存文件成功!\n");
}
void main()
{
struct book *head=NULL;
int choice=1;
head=read_file();
if(head==NULL)
{
printf("\n\t\t**********");
getch();
head=creat();
}
do
{
system("cls");
printf("\t\t----------Welcome---------\n");
printf("\n\n\t欢迎您,图书管理员.\n");
printf("\n\n\n\n\n");
printf("\n\t 请选择:");
printf("\n\t 1.查询图书信息\n");
printf("\n\t 2.修改图书信息\n");
printf("\n\t 3.增加图书信息\n");
printf("\n\t 4.删除图书信息\n");
printf("\n\t 5.显示所有图书信息\n");
printf("\n\t 0.退出系统\n");
scanf("%d",&choice);
switch(choice)
{
case 1: find(head); break;
case 2: modify(head); break;
case 3: insert(head); break;
case 4: del(head); break;
case 5: print(head); break;
case 0: system("cls");
printf("\n\n\n\n\n\t^^^^^^^^^^谢谢使用,再见^^^^^^^^^^!\n\n");
break;
}
}while(choice!=0);
save(head);
}
③ 数据结构课程设计--学生成绩管理系统
可以通过网络Hi告知我
有时间可以解决你的问题
相关的要求也可以告知我
ES:\\
交易提醒:预付定金是陷阱
④ 数据结构课程设计里有个图书馆信息管理系统的数据库文件怎么做啊
VERSION 5.00
Begin VB.Form frmSrchBookInfo
Caption = "搜索书籍信息"
ClientHeight = 5625
ClientLeft = 60
ClientTop = 345
ClientWidth = 7035
Icon = "frmSrchBookInfo.frx":0000
LinkTopic = "Form1"
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 5625
ScaleWidth = 7035
WindowState = 2 'Maximized
Begin VB.TextBox txtBookName
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3120
Locked = -1 'True
TabIndex = 7
TabStop = 0 'False
Top = 1560
Width = 2535
End
Begin VB.Frame Frame1
Caption = "请输入书号并按回车"
ForeColor = &amt;H000000FF&amt;
Height = 735
Left = 480
TabIndex = 0
Top = 600
Width = 6135
Begin VB.TextBox txtBookId
BackColor = &amt;H0080FFFF&amt;
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &amt;H00FF0000&amt;
Height = 375
Left = 2640
TabIndex = 2
Top = 240
Width = 2415
End
Begin VB.CommandButton cmdBookOpen
Caption = "..."
BeginProperty Font
Name = "Tahoma"
Size = 14.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 5280
TabIndex = 3
Top = 240
Width = 495
End
Begin VB.Label lblBookId
AutoSize = -1 'True
Caption = "书号"
BeginProperty Font
Name = "新宋体"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 240
TabIndex = 1
Top = 240
Width = 510
End
End
Begin VB.TextBox txtPubId
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3120
Locked = -1 'True
TabIndex = 6
TabStop = 0 'False
Top = 2760
Width = 2655
End
Begin VB.TextBox txtCatId
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3120
Locked = -1 'True
TabIndex = 5
TabStop = 0 'False
Top = 3360
Width = 2655
End
Begin VB.TextBox txtAuthor
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3120
Locked = -1 'True
TabIndex = 4
TabStop = 0 'False
Top = 2160
Width = 2535
End
Begin VB.Label lblBookName
AutoSize = -1 'True
Caption = "书名"
BeginProperty Font
Name = "新宋体"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 1680
TabIndex = 12
Top = 1680
Width = 510
End
Begin VB.Label lblPubId
AutoSize = -1 'True
Caption = "出版社号"
BeginProperty Font
Name = "新宋体"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 1680
TabIndex = 11
Top = 2880
Width = 1020
End
Begin VB.Label lblCatId
AutoSize = -1 'True
Caption = "种类号"
BeginProperty Font
Name = "新宋体"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 1680
TabIndex = 10
Top = 3480
Width = 765
End
Begin VB.Label lblInfo
Alignment = 2 'Center
BackColor = &amt;H00800000&amt;
Caption = "搜索书籍信息"
BeginProperty Font
Name = "新宋体"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &amt;H00FFFFFF&amt;
Height = 375
Left = 0
TabIndex = 9
Top = 0
Width = 5775
End
Begin VB.Label lblAuthor
AutoSize = -1 'True
Caption = "作者"
BeginProperty Font
Name = "新宋体"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 1680
TabIndex = 8
Top = 2280
Width = 510
End
End
Attribute VB_Name = "frmSrchBookInfo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
'设定标签
lblInfo.Left = Me.ScaleLeft
lblInfo.Top = Me.ScaleTop
lblInfo.Width = Screen.Width
End Sub
Private Sub Form_Activate()
clear
End Sub
Private Sub cmdBookOpen_Click()
frmBookInfo.Show
frmBookInfo.SetFocus
End Sub
'========================================================
'连接数据库
'========================================================
'清空textBox
Private Sub clear()
txtBookId.Text = ""
txtBookName.Text = ""
txtAuthor.Text = ""
txtPubId.Text = ""
txtCatId.Text = ""
txtBookId.SetFocus
End Sub
Private Sub Txtbookid_KeyPress(KeyAscii As Integer)
Dim BookNo As String
'指派查询关键值
BookNo = txtBookId.Text
'如果输入回车
If KeyAscii = 13 Then
clear
If Not IsNumeric(BookNo) Then
MsgBox "输入搜索关键字错误!", vbCritical, "查找错误"
Call clear
Exit Sub
End If
rsBookInfo.MoveFirst
For i = 0 To rsBookInfo.RecordCount
If rsBookInfo.EOF = True Then
Exit For
End If
If rsBookInfo(0) = Val(Trim$(BookNo)) Then
txtBookName.Text = rsBookInfo(1)
txtAuthor.Text = rsBookInfo(2)
txtPubId.Text = rsBookInfo(3)
txtCatId.Text = rsBookInfo(4)
Exit For
End If
rsBookInfo.MoveNext
Next
If txtBookName.Text = "" Then
MsgBox "此书不存在!", vbInformation, "没有找到"
'cmdSave.Enabled = False
clear
End If
End If
End Sub
VERSION 5.00
Begin VB.Form frmSrchIssue
Caption = "搜索借出书信息"
ClientHeight = 5760
ClientLeft = 60
ClientTop = 345
ClientWidth = 6975
Icon = "frmSrchIssue.frx":0000
LinkTopic = "Form1"
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 5760
ScaleWidth = 6975
WindowState = 2 'Maximized
Begin VB.TextBox txtLibraryId
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3120
Locked = -1 'True
TabIndex = 7
TabStop = 0 'False
Top = 2160
Width = 2655
End
Begin VB.TextBox txtReturnDate
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3120
Locked = -1 'True
TabIndex = 14
Top = 2160
Visible = 0 'False
Width = 2535
End
Begin VB.CommandButton cmdMemberOpen
Caption = "..."
BeginProperty Font
Name = "Tahoma"
Size = 14.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 5880
TabIndex = 8
Top = 2160
Width = 495
End
Begin VB.TextBox txtFineAmt
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3120
Locked = -1 'True
TabIndex = 6
TabStop = 0 'False
Top = 3360
Width = 2655
End
Begin VB.TextBox txtDaysUsed
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3120
Locked = -1 'True
TabIndex = 5
TabStop = 0 'False
Top = 2760
Width = 2655
End
Begin VB.Frame Frame1
Caption = "请输入书号并按回车"
ForeColor = &amt;H000000FF&amt;
Height = 735
Left = 480
TabIndex = 0
Top = 600
Width = 6135
Begin VB.CommandButton cmdBookOpen
Caption = "..."
BeginProperty Font
Name = "Tahoma"
Size = 14.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 5280
TabIndex = 3
Top = 240
Width = 495
End
Begin VB.TextBox txtBookId
BackColor = &amt;H0080FFFF&amt;
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &amt;H00FF0000&amt;
Height = 375
Left = 2640
TabIndex = 2
Top = 240
Width = 2415
End
Begin VB.Label lblBookId
AutoSize = -1 'True
Caption = "书号"
BeginProperty Font
Name = "新宋体"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 240
TabIndex = 1
Top = 240
Width = 510
End
End
Begin VB.TextBox txtIssueDate
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3120
Locked = -1 'True
TabIndex = 4
TabStop = 0 'False
Top = 1560
Width = 2535
End
Begin VB.Label lblLibraryId
AutoSize = -1 'True
Caption = "借书证号"
BeginProperty Font
Name = "新宋体"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 720
TabIndex = 12
Top = 2160
Width = 1020
End
Begin VB.Label lblInfo
Alignment = 2 'Center
BackColor = &amt;H00800000&amt;
Caption = "搜索借出书信息"
BeginProperty Font
Name = "新宋体"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &amt;H00FFFFFF&amt;
Height = 375
Left = 0
TabIndex = 13
Top = 0
Width = 5775
End
Begin VB.Label lblFineAmt
AutoSize = -1 'True
Caption = "费用数目"
BeginProperty Font
Name = "新宋体"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 720
TabIndex = 11
Top = 3360
Width = 1020
End
Begin VB.Label lblDaysUsed
AutoSize = -1 'True
Caption = "借出天数"
BeginProperty Font
Name = "新宋体"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 720
TabIndex = 10
Top = 2760
Width = 1020
End
Begin VB.Label lblIssueDate
AutoSize = -1 'True
Caption = "借出日期"
BeginProperty Font
Name = "新宋体"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 720
TabIndex = 9
Top = 1560
Width = 1020
End
End
Attribute VB_Name = "frmSrchIssue"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
'设定标签
lblInfo.Left = Me.ScaleLeft
lblInfo.Top = Me.ScaleTop
lblInfo.Width = Screen.Width
txtFineAmt.Visible = False
lblFineAmt.Visible = False
'Frame2.Left = (Screen.Width - Frame2.Width) / 2
If rsIssueInfo.RecordCount = 0 Then
MsgBox "没有书借出!", vbInformation, "借书记录"
Unload Me
End If
'cmdSave.Enabled = False
End Sub
Private Sub Form_Activate()
clear
End Sub
Private Sub cmdBookOpen_Click()
frmBookInfo.Show
frmBookInfo.SetFocus
End Sub
Private Sub cmdMemberOpen_Click()
frmMemberInfo.Show
frmMemberInfo.SetFocus
End Sub
'========================================================
'连接数据库
'========================================================
Private Sub clear()
txtIssueDate.Text = ""
txtBookId.Text = ""
txtDaysUsed.Text = ""
txtFineAmt.Text = ""
txtLibraryId.Text = ""
txtReturnDate.Text = ""
txtFineAmt.Visible = False
lblFineAmt.Visible = False
txtBookId.SetFocus
End Sub
Private Sub Txtbookid_KeyPress(KeyAscii As Integer)
Dim BookNo As String
Dim issueDate As Date
Dim currDate As Date
Dim totalDaysUsed As Integer
Dim totalFineAmt As Integer
'指派查询关键值
BookNo = txtBookId.Text
If KeyAscii = 13 Then
clear
If Not IsNumeric(BookNo) Then
MsgBox "输入搜索关键字错误", vbCritical, "搜索失败"
Call clear
Exit Sub
End If
rsIssueInfo.MoveFirst
For i = 0 To rsIssueInfo.RecordCount
If rsIssueInfo.EOF = True Then
Exit For
End If
If rsIssueInfo(0) = Val(Trim$(BookNo)) Then
txtLibraryId.Text = rsIssueInfo(2)
txtReturnDate.Text = Format(Now, "yy/mm/dd/")
txtIssueDate.Text = rsIssueInfo(1)
issueDate = CDate(txtIssueDate.Text)
currDate = CDate(Format(Now, "yy/mm/dd"))
totalDaysUsed = DateDiff("d", issueDate, currDate)
If totalDaysUsed > maxDays Then
txtFineAmt.Visible = True
lblFineAmt.Visible = True
totalDaysUsed = totalDaysUsed - maxDays
totalFineAmt = fineAmt * totalDaysUsed
txtDaysUsed.ForeColor = vbRed
txtFineAmt.ForeColor = vbRed
txtDaysUsed.Text = "超出期限 " &amt; totalDaysUsed &amt; " 天!"
txtFineAmt.Text = "收费 " &amt; totalFineAmt
Else
txtDaysUsed.ForeColor = vbBlack
txtFineAmt.Visible = False
lblFineAmt.Visible = False
txtDaysUsed.Text = totalDaysUsed
End If
Exit For
End If
rsIssueInfo.MoveNext
Next
If txtLibraryId.Text = "" Then
MsgBox "此书未借出", vbInformation, ""
'cmdSave.Enabled = False
clear
End If
End If
End Sub
VERSION 5.00
Begin VB.Form frmSrchMember
Caption = "搜索"
ClientHeight = 5730
ClientLeft = 60
ClientTop = 345
ClientWidth = 7260
Icon = "frmSrchMember.frx":0000
LinkTopic = "Form1"
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 5730
ScaleWidth = 7260
WindowState = 2 'Maximized
Begin VB.TextBox txtAddress
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3120
Locked = -1 'True
TabIndex = 12
TabStop = 0 'False
Top = 3960
Width = 2655
End
Begin VB.TextBox txtRollNo
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3120
Locked = -1 'True
TabIndex = 7
TabStop = 0 'False
Top = 2160
Width = 2535
End
Begin VB.TextBox txtSex
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3120
Locked = -1 'True
TabIndex = 6
TabStop = 0 'False
Top = 3360
Width = 2655
End
Begin VB.TextBox txtMemName
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3120
Locked = -1 'True
TabIndex = 5
TabStop = 0 'False
Top = 2760
Width = 2655
End
Begin VB.Frame Frame1
Caption = "请输入会员号并按回车"
ForeColor = &amt;H000000FF&amt;
Height = 735
Left = 4
⑤ 数据结构课程设计----学生信息管理系统
都已经有数据库了,是不是就是写SQL语句啊,还用什么排序法啊?直接在SQL语句里面写好不就OK?
⑥ 数据结构课程设计:学生信息管理系统。
不免费代做
⑦ 数据结构课程设计,通讯录管理系统
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
struct record
{
char name[20];
char tel[25];
char position[25];
char email[30];
}humen[100];
int renshu;
void menu()
{
void append();
void del();
void search();
void search1();
void edit();
void display();
while(1)
{
system("cls");
int a;
printf("*******通 讯 录*****\n");
printf("-----1 添加联系人-----\n");
printf("-----2 删除联系人-----\n");
printf("-----3 按姓名查找-----\n");
printf("-----4 按电话查找-----\n");
printf("-----5 修改联系人-----\n");
printf("-----6 显示联系人-----\n");
printf("*****0 退 出*****\n");
printf("请输入(0--6)\n");
scanf("%d",&a);
if(a>=0&&a<=6)
{
switch(a)
{
case 1:system("cls");append();
break;
case 2:system("cls");del();
break;
case 3:system("cls");search();
break;
case 4:system("cls");search1();
break;
case 5:system("cls");edit();
break;
case 6:system("cls");display();
break;
case 0:system("cls");exit(0);
break;
default:
printf("输入错误,请再次选择\n");
break;
}
}
}
}
int main()
{
menu();
system("pause");
return 0;
}
void append()//添加联系人//
{
int i;
printf("请输入要添加的联系人信息\n");
do
{
printf("输入联系人的姓名\n");
scanf("%s",humen[renshu].name);
printf("\n");
printf("输入联系人的电话\n");
scanf("%s",humen[renshu].tel);
printf("\n");
printf("输入联系人的职务\n");
scanf("%s",humen[renshu].position);
printf("\n");
printf("输入联系人的邮箱\n");
scanf("%s",humen[renshu].email);
printf("\n");
renshu++;
printf("1 继续 0 退出\n");
scanf("%d",&i);
}while(i!=0);
printf("\n");
system("cls");
}
void del()//删除联系人//
{
int i;
char a[20];
printf("输入要删除的联系人姓名\n");
do
{
scanf("%s",a);
if(strcmp(humen[20].name,a)==0)
{
for(int j=0;j<renshu;j++)
humen[j]=humen[j+1];
}
renshu--;
printf("删除成功\n");
printf("1 继续 0 退出\n");
scanf("%d",&i);
}while(i!=0);
system("cls");
}
void search()//按姓名查找联系人//
{
int H;
char a[20];
do
{
printf("输入要查找的联系人姓名\n");
scanf("%s",a);
for(int i=0;i<renshu;i++)
{
if(strcmp(humen[i].name,a)==0)
{
printf("姓名:%s\n电话:%s\n职务:%s\n邮箱:%s\n\n",
humen[i].name,humen[i].tel,humen[i].position,humen[i].email);
}
}
printf("1 继续,0 退出\n");
scanf("%d",&H);
}while(H!=0);printf("\n");
system("cls");
}
void search1()//按电话查找联系人//
{
int H;
char b[25];
do
{
printf("输入要查找的联系人电话\n");
scanf("%s",&b);
for(int i=0;i<renshu;i++)
{
if(strcmp(humen[i].tel,b)==0)
{
printf("姓名:%s\n电话:%s\n职务:%s\n邮箱:%s\n\n",
humen[i].name,humen[i].tel,humen[i].position,humen[i].email);
}
}
printf("1 继续,0 退出\n");
scanf("%d",&H);
} while(H!=0);
system("cls");
}
void edit()//修改联系人//
{
int i;
char b[20];
printf("输入要修改的联系人\n");
do
{
scanf("%s",b);
for(i=0;i<renshu;i++)
if(strcmp(humen[i].name,b)==0)
{
system("cls");
int j;
printf("选择要修改的内容\n");
printf("1 修改姓名\n");
printf("2 修改电话\n");
printf("3 修改职务\n");
printf("4 修改邮箱\n");
printf("请输入(1--4)\n");
scanf("%d",&j);
if(j>=0&&j<=4)
{
switch(j)
{
case 1:system("cls");
printf("姓名:");
scanf("%s",humen[i].name);
break;
case 2:system("cls");
printf("电话:");
scanf("%s",humen[i].tel);
break;
case 3:system("cls");
printf("职务:");
scanf("%s",humen[i].position);
break;
case 4:system("cls");
printf("邮箱:");
scanf("%s",humen[i].email);
break;
}
}
}
printf("1 继续 0 退出\n");
scanf("%d",&i);
} while(i!=0);
system("cls");
}
void display()//显示联系人//
{
int i;
for(i=0;i<renshu;i++)
{
printf("姓名:%s\n电话:%s\n职务:%s\n邮箱:%s\n\n",
humen[i].name,humen[i].tel,humen[i].position,humen[i].email);
}
system("pause");
}