A
AsuWoo
you are given two rectangles, each defined by an upper left(UL) corner and a
low right(LR)corner,Both rectangles' edges will always be parrallel to the x
or y axis ,Write a window program with c# that user can use mouse to draw
the rectangle add the program will determines whether the two rectangles
overlap. For convenience, you may use the following structs:
Struct point{
Int x;
Int y;
}
Struct rect{
struct point UL;
struct point LR;
}
The function prototype is As following:
int overlap(struct rect A,struct rect B);
low right(LR)corner,Both rectangles' edges will always be parrallel to the x
or y axis ,Write a window program with c# that user can use mouse to draw
the rectangle add the program will determines whether the two rectangles
overlap. For convenience, you may use the following structs:
Struct point{
Int x;
Int y;
}
Struct rect{
struct point UL;
struct point LR;
}
The function prototype is As following:
int overlap(struct rect A,struct rect B);