>>395
#include<iostream>
class Rect{
public:
int left,top,right,bottom;
void Rect::SetRect(int left,int top,int right,int bottom){
this->left = left;
this->top = top;
this->right = right;
this->bottom = bottom;
}
void Rect::SetRectEmpty(void){
left = top = right = bottom = 0;
}
};
int main(void){
Rect rc;
rc.SetRect( 0, 0, 640, 480);
std::cout << "(" << rc.left << ", " << rc.top << ") - (" << rc.right << ", " << rc.bottom << ")" << std::endl;
rc.SetRectEmpty();
std::cout << "(" << rc.left << ", " << rc.top << ") - (" << rc.right << ", " << rc.bottom << ")" << std::endl;
return 0;
}