예제 #1
0
파일: zad2.c 프로젝트: ikablasz/lab_c
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) );
}
예제 #2
0
파일: main.c 프로젝트: tsott/c
int main()
{
    struct rect r1, r2;

    scanrect("Podaj wspolrzedne prostokata1", &r1);

    scanrect("Podaj wspolrzedne prostokata2", &r2);

    printf("%i \n", disjointrect(r1, r2));

    return 0;
};
예제 #3
0
파일: zad2.c 프로젝트: k0n1u/lab_c
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) );
}