Помогите , не запускается Кривая Безье на экране

#include <stdio.h>
#include <conio.h>
#include <stlib.h>
#include <graphics.h>
#include <math.h>

void bezier (int x[4],int  y[4])
{
    int gd=DETECT,gm;
    ibt i;
    double t;
    initgraph(&gd,&gm,"c:\\tc\\bgi");
    for(t=0.0; t<1.0: t+=0.0005)
    {
         double xt=pow(1-t,3)*x[0]+3*t*pow(1-t,2)*x[1]+3*pow(t,2)*(1-t)
         double yt=pow(1-t,3)*y[0]+3*t*pow(1-t,2)*y[1]+3*pow(t,2)*(1-t)
         putpixel(xt,y,WHITE);
    }
    for(i=0; 1<4; i++)
        putpixel(x[i],y[i],YELLOW);
    getch();
    closegraph();
    return;

    void main()
    {
         int[x4],[y4];
         int  i;
         printf ("enter  x and y co-ordinates");
         for (i=0:i<4;i++)
             scanf("%d%d",&x[i],&y[i]);
         bezier(x,y);

введите сюда описание изображения


Ответы (0 шт):