int main(){ struct rect test1, test2; test1.ll=makepoint(0,0); test1.ur=makepoint(1,1); test2.ll=makepoint(-9,-9); test2.ur=makepoint(-1,-1); printf("czy rozłączny:%d\n",disjointrect(test1,test2) ); }
int main() { struct rect r1, r2; scanrect("Podaj wspolrzedne prostokata1", &r1); scanrect("Podaj wspolrzedne prostokata2", &r2); printf("%i \n", disjointrect(r1, r2)); return 0; };
int main() { struct rect test1, test2; test1.ll=makepoint(0,0); test1.ur=makepoint(10,10); test2.ll=makepoint(9,9); test2.ur=makepoint(14,18); printf("rozłączny?: %d\n",disjointrect(test1,test2) ); }