这种情况是在 codeblocks 里面发生的,但是在NETBEANS 里面没有,在VS里面呢?
class Course
{
public:
int n;
Course(int i):n(i){};
Course();
//Course();
virtual ~Course();
private:
};
class Student{
private:
typedef std::valarray<double> DBArray;
Course mycourse;
DBArray scores;
int n;
int m;
public:
Student(int i):mycourse(i),scores(mycourse.n){};
};