C++ Pointer class in place of DATA TYPE

  abstraction, c++, pointers
class Student 
{ 
 public: //add any needed functions yourself 
 private: 
 string name; 
 int rollnumber; 
} 
class University 
{ 
 public: 
// constructor 
 private: 
 int numberOfStudents; 
 SList<Student*> * list; // list is developed by me" linked list" but what is this *Student here, instead of just Student???
}

i have scene things like SList<Student>*list, so i can create new list in constructor by saying list = new SList<Student>;
but here it dont work due to *Student. What to do and what will be the syntax to declare it. Thanks

Source: Windows Questions C++

LEAVE A COMMENT