Wednesday, 20 March 2013

cg pogram

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

  void main()
  {
    int gm,gd=DETECT;

    initgraph(&gd,&gm,"c:\\tc\\bgi");

    cleardevice();

    moveto(100,120);

    printf("thr value of x and y co_ordinate is %d and %d", getx(),gety());

    getch();
    closegraph();
  }

No comments:

Post a Comment