if(sch[j].getMonth()<sch[j].getMonth())
{
temp(sch[j]);
sch[j](sch[j+1]);
sch[j+1](temp);
}
이 부분에서 항은 1개의 인수를 받아들이는 함수로 계산되지 않습니다.라고 컴파일 오류가 뜨는데요
Schedule(Schedule &s){
month=s.month;
day=s.day;
priority=s.priority;
appointment=s.appointment;
place=s.place;
}
복사 생성자 정의를 이렇게 했는데
temp와 sch 모두 Schedule 클래스인데
제가 개념을 잘못 잡고 있는건지 왜 오류가 뜨는지 모르겠네요.
댓글 0