Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

Graphics in C

#include<graphics.h>
main()
{
  int driver, mod;
  driver = VGA/DETECT;
  mod    = VGAHI/Optional if DETECT is used;
  initgraph(&driver, &mod,"C:/tc/bgi");
  putpixel(320,240,RED);
  getch();
  closegraph();
}
Source by www.codemodes.com #
 
PREVIOUS NEXT
Tagged: #Graphics #C
ADD COMMENT
Topic
Name
7+4 =