C++学生成绩管理系统设计报告(19)

2021-02-21 16:27

需求分析 功能描述 总体设计

cout<<setw(8)<<temp->outid()<<setw(8)<<temp->outname()<<setw(8)

<<temp->outsex()<<setw(8)<<temp->outsum()<<setw(10)<<temp->outav(); return; }

cout<<"查无此人!"<<endl; return; }

void list::outsum1(char *n) {

double sum=0; int i=0; double av=0;

if(first==0) {cout<<"无数据!"<<endl;return;}

student *temp=first;for(;temp!=NULL;temp=temp->next) if(strcmp(temp->outid(),n)==0) {

cout<<setw(8)<<"学号"<<setw(8)<<"姓名"<<setw(8)<<"性别"<<setw(8)<<"总成绩"<<

setw(10)<<"平均成绩"<<"\n";

cout<<setw(8)<<temp->outid()<<setw(8)<<temp->outname()<<setw(8)

<<temp->outsex()<<setw(8)<<temp->outsum()<<setw(10)<<temp->outav(); return; }

cout<<"查无此人!"<<endl; return; }

void list::scanall() {

student *temp;

for(temp = first;temp!=NULL;temp=temp->next)

cout<<setw(8)<<temp->outid()<<setw(8)<<temp->outname()<<setw(6)

<<temp->outsex()<<setw(6)<<temp->outgrade(0)<<setw(6)<<temp->outgrade(1) <<setw(6)<<temp->outgrade(2)<<setw(14)<<temp->outgrade(3)<<setw(6)

<<temp->outgrade(4)<<setw(8)<<temp->outsum()<<setw(10)<<temp->outav()<<endl; }


C++学生成绩管理系统设计报告(19).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:电子报模板

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: