ولی این یکی رو نه
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<stdlib.h>
int main()
{int driver=DETECT,mode,errorcode;
initgraph(&driver,&mode,"c:\red\language\tc\bgi");
errorcode=graphresult();
if(errorcode!=0)
{printf("error is % $",grapherrormsg(errorcode));
printf("\n press any key to continue:");
getch();
exit(1);
}
setfillstyle(LINE_FILL,RED);
bar3d(100,100,300,200,20,1);
setfillstyle(LINE_FILL,RED);
pieslice(200,200,45,90,70);
getch();
closegraph();
return 0;
}