이거 컴파일하면
fuck.cpp: In constructor ‘_XYZ::_XYZ(int, int, int)’:
fuck.cpp:29:66: error: no matching function for call to ‘_X::_X()’
_XYZ(int a, int b, int c): _XY::_XY(a, b), _XZ::_XZ(a, c), xyz(0) {}
^
fuck.cpp:29:66: note: candidates are:
fuck.cpp:8:2: note: _X::_X(int)
_X(int a): x(a) {}
^
fuck.cpp:8:2: note: candidate expects 1 argument, 0 provided
fuck.cpp:4:7: note: _X::_X(const _X&)
class _X{
^
fuck.cpp:4:7: note: candidate expects 1 argument, 0 provided
이렇게 뜨는데 도대체 왜??????????? 가지고 있는 교재가 두 권인데 두권 다 살펴보고 그대로 따라했건만..
원형인 _X에 해당하는 함수가 없다고 발광하는데 _X상속하는 _XY _XZ에 대해 각각 생성자 만들어줬으니 그걸로 된 거 아님??
ㄴ 해결함ㅇㅇ 감사
삼촌 // 왱 ??