0

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

2
Contributors
1
Reply
2
Views
9 Years
Discussion Span
Last Post by zandiago
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.