#include<iostream>
#include<cstdlib>
#include <string>
using namespace std;
class Student
{
private:
string name;
int numClasses;
string *classList;
public:
Student();
void InputData();
void OutputData();
void ResetClasses();
Student& operator =(const Student& rightSide);
~Student();
};
Student::Student():numClasses(30), name(0)
{
classList = new string;
}
void Student::InputData()
{
cout <<"请输入学生姓名: ";
cin >>name;
cout <<"总共修几个科目呢? ";
cin >>numClasses;
cout <<"请输入"<<numClasses<<"个科目名称"<<endl;
for(int i=0; i<numClasses; i++)
{
cout<<"=====第"<<i+1<<"个科目====="<<endl;
cin >> numClass ..
访客只能看到部份内容,免费 加入会员 或由脸书 Google 可以看到全部内容