当前位置:首页 > C++课程设计学生学籍管理系统
{ cout<<\输入籍贯: \输入民族: \
cout<<\输入生日: \输入政治面貌: \
cout<<\输入身份证号: \ cout<<\输入数学分数: \
cout<<\输入英语分数: \
cout<<\输入计算机分数: \
e=0;}
else
{cout<<\无此类型性别!重新输入!\
e=1; }
}while(e);
return ;
}
void input(ifstream & is)
{is>>number>>name>>sex>>place>>nation>>birth>>party>>id
>>score[0]>>score[1]>>score[2];
is.get(); }
void output()
{cout<<\学生基本信息如下:\
cout<<\编号:\姓名:\性别:\籍贯:\
<<\民族:\生日:\政治面貌:\
<<\身份证号:\数学:\英语:\
<<\计算机:\总分:\
}
void output(ofstream & os)
{ os< < < < }};//操纵符指定宽度 class school {public: school(){ head=new student; head->next=NULL; key=0; } ~school(){ delete head; } void input(); void mend(); void del(); int find(student **p,int num,char *pn=\ void found(); void show(); void count(); void save(); void begin(); void clear(); char mainmenu(); int getkey(){ return key;} void setkey(int k){ key=k; } private: student *head; int key; }; //录入函数 void school::input() {student *p,*p2=NULL; p=head; int n; while(p->next) p=p->next; while(n) { p2=new student; p2->input(); p->next=p2; p2->next=NULL; p=p->next; school::setkey(1); cout<<\按1继续,按0返回 : \ } } //子查找函数 int school::find(student **p1,int num,char *pn) { student *p; p=head; while(p->next)
共分享92篇相关文档