• 大小: 342KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-12
  • 语言: 其他
  • 标签: 管理系统  

资源简介

之前那几个有BUG 这个是终极版的 very nice

资源截图

代码片段和文件信息

#include “program.h“
#include 
#include 
#include 
using namespace std;
void namechange(char str[]struct sa *head){
    struct sa *p1=head;
    if(head!=NULL)
    while(p1!=NULL)
    {
        if(strcmp(p1->namestr)==0){
             p1=(struct sa*)malloc(LEN);
            cout<<“姓名:“;
            cin>>p1->name;
            cout<<“学号:“;
            cin>>p1->number;
            cout<<“性别:“;
            cin>>p1->sex;
            cout<<“科目1:“;
            cin>>p1->grade[0];
            cout<<“科目2:“;
            cin>>p1->grade[1];
            cout<<“科目3:“;
            cin>>p1->grade[2];
            cout<<“科目4:“;
            cin>>p1->grade[3];
            cout<<“科目5:“;
            cin>>p1->grade[4];
            p1->nub=0;
            p1->sum=p1->grade[0]+p1->grade[1]+p1->grade[2]+p1->grade[3]+p1->grade[4];
            p1->aver=p1->sum/5;
        }
        p1=p1->next;
    }
    else cout<<“Oh my God这没有链表“<
}
void numberchange(int nstruct sa *head){
    struct sa *p1=head;
    if(head!=NULL)
    while(p1!=NULL)
    {
        if(p1->number==n){
             p1=(struct sa*)malloc(LEN);
            cout<<“姓名:“;
            cin>>p1->name;
            cout<<“学号:“;
            cin>>p1->number;
            cout<<“性别:“;
            cin>>p1->sex;
            cout<<“科目1:“;
            cin>>p1->grade[0];
            cout<<“科目2:“;
            cin>>p1->grade[1];
            cout<<“科目3:“;
            cin>>p1->grade[2];
            cout<<“科目4:“;
            cin>>p1->grade[3];
            cout<<“科目5:“;
            cin>>p1->grade[4];
            p1->nub=0;
            p1->sum=p1->grade[0]+p1->grade[1]+p1->grade[2]+p1->grade[3]+p1->grade[4];
            p1->aver=p1->sum/5;
        }
        p1=p1->next;
    }
    else cout<<“Oh my God这没有链表“<}
//void sumchange(char str[]T *head){
//    T *p1=head;
//    while(p1!=NULL)
//    {
//        if(strcmp(p1->namestr)==0){
//            cin>>p1->number>>p1->name>>p1->sex>>p1->grade[0]>>p1->grade[1]>>p1->grade[2]>>p1->grade[3]>>p1->grade[4];
//            p1->sum=p1->grade[0]+p1->grade[1]+p1->grade[2]+p1->grade[3]+p1->grade[4];
//            p1->aver=p1->sum/5;
//        }
//        p1=p1->next;
//    }
//
//    //╪реепРё╩
//}
struct sa *getmore(struct sa *head)
{
    cout<<“请输入学生信息“<    struct sa *p1*p2;
    p1=head;
    p2=p1;
    int n=0;
    while(1){
        n++;
        if(p1==NULL){
            p1=(struct sa*)malloc(LEN);
            cout<<“姓名:“;
            cin>>p1->name;
            cout<<“学号:“;
            cin>>p1->number;
            cout<<“性别:“;
            cin>>p1->sex;
            cout<<“科目1:“;
            cin>>p1->grade[0];
            cout<<“科目2:“;
            cin>>p1->grade[1];
            cout<<“科目3:“;
            cin>>p1->grade[2];
            cout<<“科目4:“;
            cin>>p1->grade[3];
            cout<<“科目5:“;
            cin>>p1->grade[4];
     

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-07-10 12:23  project_NEFU\
     目录           0  2015-07-08 12:46  project_NEFU\bin\
     目录           0  2015-07-09 13:02  project_NEFU\bin\Debug\
     文件     1057644  2015-07-09 13:03  project_NEFU\bin\Debug\project_NEFU.exe
     文件        3886  2015-07-09 13:02  project_NEFU\change.cpp
     文件         712  2015-07-09 11:11  project_NEFU\change.h
     文件        2226  2015-07-09 13:00  project_NEFU\file.cpp
     文件         167  2015-07-09 12:52  project_NEFU\file.h
     文件        1980  2015-07-09 12:57  project_NEFU\find.cpp
     文件         197  2015-07-08 17:30  project_NEFU\find.h
     文件        1585  2015-07-09 12:57  project_NEFU\get.cpp
     文件         213  2015-07-08 17:30  project_NEFU\get.h
     文件        3636  2015-07-09 12:57  project_NEFU\main.cpp
     文件        1975  2015-07-09 12:43  project_NEFU\meau.cpp
     文件         152  2015-07-08 16:14  project_NEFU\meau.h
     目录           0  2015-07-08 12:46  project_NEFU\obj\
     目录           0  2015-07-09 13:02  project_NEFU\obj\Debug\
     文件       18059  2015-07-09 13:02  project_NEFU\obj\Debug\change.o
     文件       19500  2015-07-09 13:00  project_NEFU\obj\Debug\file.o
     文件       15937  2015-07-09 12:57  project_NEFU\obj\Debug\find.o
     文件       16322  2015-07-09 12:57  project_NEFU\obj\Debug\get.o
     文件       20579  2015-07-09 12:57  project_NEFU\obj\Debug\main.o
     文件       16165  2015-07-09 12:43  project_NEFU\obj\Debug\meau.o
     文件       20284  2015-07-08 17:25  project_NEFU\obj\Debug\qsort.o
     文件           0  2015-07-08 16:20  project_NEFU\program.cpp
     文件         250  2015-07-08 17:21  project_NEFU\program.h
     文件        1482  2015-07-08 17:35  project_NEFU\project_NEFU.cbp
     文件        2416  2015-07-09 13:04  project_NEFU\project_NEFU.depend
     文件        2691  2015-07-10 12:23  project_NEFU\project_NEFU.layout
     文件        2473  2015-07-08 17:25  project_NEFU\qsort.cpp
     文件         287  2015-07-08 17:30  project_NEFU\qsort.h
............此处省略0个文件信息

评论

共有 条评论