오버로딩 배우기 시작했는데.. 생각처럼 안 되네요.
어느 부분이 오류인지 모르겠어요
비주얼 c++6.0 에서 4개 오류나는데요..
밑에 소스 코드랑 오류 내용있어요 좀 고쳐주세요 ㅜㅜ.
[code:1]#include <iostream.h>
class CRectangle
{
protected:
int left; int right; int top; int bottom;
public:
CRectangle(int x1,int y1, int x2, int y2);
void printf();
CRectangle operator += (CRectangle data);
};
CRectangle::CRectangle(int x1,int y1, int x2, int y2)
{