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. |
---|
thanx it is very useful to understand structure of c graphics. Nice job. Keep it up...
ReplyDeleteit is not running in borland c++ 5.02 version
ReplyDeletecan u help me?
i think you have window 7 as operation system???
ReplyDeleteif you are using window 7 than i suggest you that you please use emulated turbo c for runnning graphics program.
To run graphics program in window 7 just visit this page Click Here.
ReplyDeletenice work bro, keep going...,.,
ReplyDeleteThanks for your feedback friend.
ReplyDeletethere is 404 error when i click on download button for emulated turbo c
ReplyDeleteSorry for the inconvenience. Now you can easily download the emulated turbo c. just click on download link.
ReplyDeletePLEASE TELL ME HOW CAN I MAKE C GRAPHICS PROGRAM BECAUSE I HAVE TYPED THE CODING AS YOU SUGGESTED BUT COMPILER GENERATE ERRORS
ReplyDeletehow to draw curve between two formula.
ReplyDeleteIn turbo c7 it shows 3 error in run.
ReplyDelete3 run time errors, undefined symbol line, initgraph and close graph... now what??
ReplyDeleteClick to see the code!
To insert emoticon you must added at least one space before the code.