• 2023-04-17getpixel(0,0)
    #include<graphics.h>#include<stdio.h>intmain(){inti;intgraphdriver=DETECT;intgraphmode;initgraph(&graphdriver,&graphmode,"");cleardevice();putpixel(0,0,2);i=getpixe
  • 2023-04-17rectangle(), drawpoly()
    #include<graphics.h>#include<stdio.h>intmain(){inti;intpoints[8]={320,0,0,240,640,240,320,0};intgraphdriver=DETECT;intgraphmod
  • 2023-04-17pieslice(),setcolor(),setbkcolor()
    #include<graphics.h>#include<stdio.h>intmain(){inti;intgraphdriver=DETECT;intgraphmode;initgraph(&graphdriver,&graphmode,"");cleardevice();setcolor(4);setbkcolor(BLUE);pieslice(200,200,0,90,100);rectangle(301,
  • 2023-04-17setlinestyle(j,0,3)
    #include<graphics.h>#include<stdio.h>intmain(){inti,j;intgraphdriver=DETECT;intgraphmode;initgraph(&graphdriver,&graphmode,"");cleardevice();for(i=0;i<4;i++){