91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 4KB
    文件類型: .rar
    金幣: 1
    下載: 0 次
    發布日期: 2021-01-03
  • 語言: C/C++
  • 標簽:

資源簡介

struct student { char name[20]; //學生的姓名 long int num; //學生的學號 int classroom,grade; //學生的班級和年級 double english,math,c; //學生的各科成績 double sum; //學生的總成績 double average;//學生的平均成績 int order; //學生的排名 struct student *next; };

資源截圖

代碼片段和文件信息

#include
#include
#include?
#include
#include
using?namespace?std;
int?n;????//定義一個全局變量統計學生人數
struct?student
{
char?name[20];????//學生的姓名
long?int?num;?????//學生的學號
int?classroomgrade;????//學生的班級和年級
double?englishmathc;??//學生的各科成績
double?sum;????//學生的總成績
double?average;//學生的平均成績
int?order;?????//學生的排名
struct?student?*next;
};

student?*first(student?*head)????//建立頭指針
{
head=new?student;
head->next=NULL;
return?head;
}

/*************************************************************************/
//1.學生基本信息輸入包括成績
void?input(student?*head)
{
student?*p=new?student;
student?*q=NULL;
cout<<“\n\n????請輸入學生的姓名:“;
cin>>p->name;
cout<<“\n????請輸入學生的學號:“;
cin>>p->num;
while(p->num<0||p->num>1999999999)????

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件??????16816??2011-08-12?22:52??學生成績與獎學金評定系統.cpp

?????文件????????461??2011-08-23?16:52??學生信息(讀取).txt

?????文件???????1095??2011-08-23?16:52??學生信息(保存).txt

?????文件?????????32??2011-08-23?16:52??評定結果.txt

-----------?---------??----------?-----??----

????????????????18404????????????????????4


評論

共有 條評論