class Student{
public:
int sNumber;
int wantedCoursesNumber;
int qStudent;
int courselist;
Student(int cN,int qS,int i){
this->sNumber = i;
this->wantedCoursesNumber = cN;
this->qStudent = qS;
this->courselist = new int[cN];
}
when i create this class,it gives the error "invalid conversion from 'int*' to 'int' [-fpermissive]" for courselist.I just want to create in every student object an array that has the size of cN can anyone help me , i'm new in c++