title: Calling functions from a double pointer
body: <p>I created a pointer to a class I made that points to a dynamic array of pointers of this class. I am trying to use functions from the class I created (<code>Student</code>).</p>
  
  <pre><code>Student **list;
  
  list[i] = TextToClass(tempCourse);
  list[i].SetCourse(x);
  list[i].SetGrades(inFile);
  </code></pre>
  
  <p>The assignment works. But using these functions does not work. How exactly do I go about using their functions?</p>
  
  <p>Here is the error:</p>
  
  <pre><code>student.cpp: In member function ‘void Controller::ReadAndStore()’:
  student.cpp:119: error: request for member ‘SetCourse’ in ‘((Controller*)this)-&gt;Controller::list[i]’, which is of non-class type ‘Student*’
  student.cpp:121: error: request for member ‘SetGrades’ in ‘((Controller*)this)-&gt;Controller::list[i]’, which is of non-class type ‘Student*’
  </code></pre>