- 158
- 0
- 约1.11万字
- 约 25页
- 2021-11-06 发布于湖南
- 举报
第 八 章
#include iostream
using namespace std;
class Time
{public: core;
int k=0; for(int i=1;i5;i++)
if(arr[i].scoremax_score)
{max_score=arr[i].score;k=i;}
coutarr[k].num max_scoreendl;
}
题
#include iostream
using namespace std;
class Student
{public:
Student(int n,float
s):num(n),score(s){} void change(int
n,float s) {num=n;score=s;} void
display(){coutnum scoreendl;}
private: int num; float score;
};
int main()
{Student
stud(
原创力文档

文档评论(0)