void search(node& head, string name); void save(node &head); void menu1(node& head); void menu2(node& head);
#include
node::node() { }
void node::add(node* n) {
n->right=right; n->left=this;
if(right!=NULL)right->left=n; right=n; }
node* node::del1() {
if(left!=0)left->right=right;
left=0,right=0;
if(right!=0)right->left=left; return 0; }
void node::show() {
cout<<\
cout<<\姓名:\ cout<<\班级:\ cout<<\性别:\ cout<<\院系:\ cout<<\成绩如下:\
cout<<\语言:\ cout<<\英语 :\ cout<<\数学 :\cout<<\
cout< node* del1(node& head, string name) { for(node*i=head.right; i!=0; i=i->right) { if(i->NAME==name) { return i; } } return 0; } void init(node &head,string name,string grade,string sex,string yard,string c,string english,string math) { node* n; n=new node; n->NAME = name; n->GRADE = grade; n->SEX = sex; n->YARD = yard; n->C = c; n->ENGLISH = english; n->MATH = math; head.add(n); } void del(node* n) { } void enter(node& head) { node* n; n=new node; if(n!=0)n->del1(); delete n; cout<<\输入姓名、班级、性别、院系、成绩:\ cout<<\姓名: \ cin>>n->NAME; cout<<\班级: \ cin>>n->GRADE; cout<<\性别: \ cin>>n->SEX; cout<<\院系: \ cin>>n->YARD; cout<<\成绩:\ cout<<\语言: \ cin>>n->C; } void display(node& head) { for(node* i=head.right; i!=0; i=i->right) } void search(node& head, string name) { for(node*i=head.right; i!=0; i=i->right) { { } i->show(); cout<<\英语: \cin>>n->ENGLISH; cout<<\数学: \cin>>n->MATH; cout<<\输入完成========\head.add(n); if(i->NAME==name) { if(i!=0) { i->show(); } } } } void save(node &head) { ofstream file(\ file<<\姓名\班级\性别\院系 \英语\数学\ file< void menu1(node& head) { bool b=false; } string a; system(\ cout<<\学生信息管理==========\cout<<\添加信息\cout<<\查看所有信息\cout<<\删除信息\cout<<\查询信息\ cout<<\对信息进行存盘\cout<<\关闭程序\ cout<<\cout< cout<<\请选择操作指令:\while(b==false) {