Update CourseRelated.cpp

Addint canSetCourseCode()