float sc = 0); float get_score(char* nm); float average();}; float sc); float getscore(char* nm); float getscore(stu* st); float sc(int n){return score[n];} float average();};// student class class stu{ char name[20]; int cnt; course* cours[5];public: stu(char* nm); char* nm() {return name;} void add(course* cs #include <iostream.h>#include <string.h>class stu;#define size 20// course class class course { //static const size = 20; char name[20]; stu* student[size]; int cnt; float score[size];public: course(char* nm); char* nm() {return name;} void add(stu* st
一个c++的编程题 描述课程类和学生类
最新推荐文章于 2023-11-30 04:45:00 发布