First Program in C Graphics


                                                     Before start first program of C Graphics we need to understand its basic structure to write program. In C graphics basic unit is Pixel. and it has 640 column and 480 rows. 

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

void main()
{
       int gd=DETECT,gm;
       initgraph(&gd, &gm, "C://TC//BGI");
       line(0,0,200,200);
       getch();
       closegraph();
}
Brief Introduction of program.

brief introduction of c graphics program

10 comments:

  1. thanx it is very useful to understand structure of c graphics. Nice job. Keep it up...

    ReplyDelete
  2. it is not running in borland c++ 5.02 version
    can u help me?

    ReplyDelete
  3. i think you have window 7 as operation system???
    if you are using window 7 than i suggest you that you please use emulated turbo c for runnning graphics program.

    ReplyDelete
  4. To run graphics program in window 7 just visit this page Click Here.

    ReplyDelete
  5. nice work bro, keep going...,.,

    ReplyDelete
  6. Thanks for your feedback friend.

    ReplyDelete
  7. there is 404 error when i click on download button for emulated turbo c

    ReplyDelete
  8. Sorry for the inconvenience. Now you can easily download the emulated turbo c. just click on download link.

    ReplyDelete
  9. PLEASE TELL ME HOW CAN I MAKE C GRAPHICS PROGRAM BECAUSE I HAVE TYPED THE CODING AS YOU SUGGESTED BUT COMPILER GENERATE ERRORS

    ReplyDelete
  10. how to draw curve between two formula.

    ReplyDelete