Hi guys

I wrote a c++ code but when I compile it I got some errors I couldn't figure it out


course.cpp: In constructor `Course::Course(std::string, int)':
course.cpp:7: error: initializer expression list treated as compound expression
course.cpp:7: error: invalid conversion from `int' to `char*'
main.cpp: In function `int main()':
main.cpp:12: error: no matching function for call to `Student::Student()'
student.h:11: note: candidates are: Student::Student(const Student&)
student.h:24: note: Student::Student(std::string)
student.cpp: In constructor `Student::Student(std::string)':
student.cpp:5: error: uninitialized member `Student::id' with `const' type `const int'
student.cpp:5: error: no matching function for call to `Date::Date()'
Date.h:8: note: candidates are: Date::Date(const Date&)
Date.h:15: note: Date::Date(int, int, int)

Thank you for your help

Please post the source code along with the objective of the program and it's requirements.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.