title: Stack Overflow error when instantiating a new Class
body: <p>I have a "Class" class that has a string name and an Array of "Student" objects. The "Student" class has a name and has "Grades". The "Grades" class is a array of doubles.</p>
  
  <p>In the main class, I create a Grades object and a Student object. I test some of the functions with it and it all works well:</p>
  
  <pre><code>int main(){
  
      cout &lt;&lt; fixed &lt;&lt; setprecision(2);
  
      Grades test = Grades ("5 - 90.0 85.0 95.5 77.5 88.0");
      cout &lt;&lt; test.toString() &lt;&lt; endl;
      cout &lt;&lt; "\nSum  = " &lt;&lt; test.getSum() &lt;&lt; endl;
      cout &lt;&lt; "Num grades  = " &lt;&lt; test.getNumGrades() &lt;&lt; endl;
      cout &lt;&lt; "Low grade  = " &lt;&lt; test.getLowGrade() &lt;&lt; endl;
      cout &lt;&lt; "High grade  = " &lt;&lt; test.getHighGrade() &lt;&lt; endl;
  
      Student stu = Student("Billy Bob", "5 - 90 85 95.5 77.5 88");
      cout &lt;&lt; stu.toString() &lt;&lt; endl;
      cout &lt;&lt; "\nSum  = " &lt;&lt; stu.getSum() &lt;&lt; endl;
      cout &lt;&lt; "Average  = " &lt;&lt; stu.getAverage() &lt;&lt; endl;
      cout &lt;&lt; "Average after dropping low grade  = " &lt;&lt; stu.getAverageMinusLow() &lt;&lt; endl;
      cout &lt;&lt; "Low grade  = " &lt;&lt; stu.getLowGrade() &lt;&lt; endl;
      cout &lt;&lt; "High grade  = " &lt;&lt; stu.getHighGrade() &lt;&lt; endl;
  
  }
  </code></pre>
  
  <p>However when I add the line:</p>
  
  <pre><code>Class testClass = Class("Comp Sci 1", 3);
  </code></pre>
  
  <p>and then run the program, it has a Stack Overflow error.
  "First-chance exception at 0x0033EAB7 in Gradebook.exe: 0xC00000FD: Stack overflow (parameters: 0x00000000, 0x003D2000)."</p>
  
  <p>If there is a handler for this exception, the program may be safely continued.
   Is it because there are too many objects and that each object is a member of another object? Is there a way to "delete" my "test" and "stu" objects that were created before this line?  </p>
  
  <p>Here is my "Class" constructors for reference:</p>
  
  <pre><code>class Class{
      private:
          string name;
          Student studentList[100];
          int numStudents;
  
      public: Class(string className, int numStudents1);
              Class();
  }
  
  Class:: Class(string className, int numStudents1){
      name = className;
      numStudents = numStudents1;
  
  }
  Class:: Class(){
      name = "";
      numStudents = 0;
  }
  </code></pre>
  
  <p>Does this error show up because my "studentList" Student array in the Class object is not instantiated in the constructors?</p>