⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 学生通讯录管理系统.cpp

📁 这是学生通讯管理系统哦.........................
💻 CPP
字号:
#include<iostream.h>
#include"Student.h"
						//输入学生资料
void InPut(STLinkList &A)
{
	Student B;
	cout<<"请输入学号:";
	cin>>B.No;
	cout<<"请输入姓名:";
	cin>>B.Name;
	cout<<"请输入性别:";	
	cin>>B.Sex;
	cout<<"请输入出生日期:";
	cin>>B.Birthday;
	cout<<"请输入电话号码:";
	cin>>B.TelNo;
	cout<<"请输入地址:";
	cin>>B.Address;
	A.InsterTail(B);
}
						//
						//主函数
void main()
{
	STLinkList A;
	ma(A);
	int i=0,n=0;
	cout<<"________________________________________________________________"<<endl;
	cout<<"			操作说明"<<endl;
	cout<<"________________________________________________________________"<<endl;
	cout<<"1:输入学生资料				2:删去学生资料"<<endl;
	cout<<"3:输出个别的学生资料			4:按学号输出通信录"<<endl;
	cout<<"5:退出"<<endl;
	cout<<"输入要操作的序号:";
	cin>>i;
	cout<<"________________________________________________________________"<<endl;
	do
	{
	if(i==1)
	{
		InPut(A);
	}
	if(i==2)
	{
		cout<<"请输入要删去的学生的学号:";
		cin>>n;
		A.Del(n);
	}
	if(i==3)
	{
		cout<<"请输入要输出的学生的学号:";
		cin>>n;
		A.Output(n);
	}
	if(i==4)
	{
		A.Output();
		cout<<"****************************************************************"<<endl;
	}
	cout<<"________________________________________________________________"<<endl;
	cout<<"			操作说明"<<endl;
	cout<<"________________________________________________________________"<<endl;
	cout<<"1:输入学生资料				2:删去学生资料"<<endl;
	cout<<"3:输出个别的学生资料			4:按学号输出通信录"<<endl;
	cout<<"5:退出"<<endl;
	cout<<"输入要操作的序号:";
	cin>>i;
	cout<<"________________________________________________________________"<<endl;
	cout<<"________________________________________________________________"<<endl;	
	}while(i!=5);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -