Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

Graphics in C Draw A Line


#include<graphics.h>
main()
{
  int driver, mod;
  driver = VGA;
  mod    = VGAHI;
  initgraph(&driver, &mod,"C:	cgi");
  setcolor(RED);
  line(0,0,320,240);
  getch();
  closegraph();
}
Source by www.codemodes.com #
 
PREVIOUS NEXT
Tagged: #Graphics #C #Draw #A #Line
ADD COMMENT
Topic
Name
4+5 =