您的位置:首页 > 编程语言 > C语言/C++

一个c++的编程题 描述课程类和学生类

2008-10-20 09:09 330 查看
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
;} 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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐