main() { igraph(); maxx = getmaxx(); maxy = getmaxy(); setcolor(2); bezier(0.85,0.75,0.57,0.78,0.534,0.9,4); setfillstyle(2,2); getch(); closegraph(); return(0); }
main() { int i; float temp1,temp2; for(i=0;i<4;i++) { printf("Enter(x,y) coordinates of point%d:",i+1); scanf("%f%f",&temp1,&temp2); xxx[i][0]=temp1; xxx[0][1]=temp2; } igraph(); bazier(xxx[1][0],xxx[1][1],xxx[2][0],xxx[2][1],xxx[3][0],xxx[3][1],8); getch(); closegraph(); }