Thursday, September 19, 2013

error messages & corrections



  1. error: declaration of ‘std::string GradeBook::getCourseName()’ outside of class is not definition [-fpermissive]:cause: semicolon in function definition in class implementation
  2. error : undefined refernce to class member.cause : constructor with no arguments was called as GradeBook my GradeBook();Eclipse gave an error for the same
  3. Time.h:24:11: error: ISO C++ forbids in-class initialization of non-const static member initialsing data members of a function: cause initialising data member of a class

No comments:

Post a Comment