This is hat one of our programs was, and it should work, although I may have misspelled something when I was coping what my paper had on it.
Code:
#include <graphics.h>
#include <iostream.h>
#include <math.h>
#include <conio.h>
main()
{
int c=0, graphdriver, graphmode, r;
clrscr();
cout << "\n\n\n\n\nPress <Enter> to go to Graphics Mode";
graphdriver=DETECT;
initgraph (&graphdriver, &graphmode, "c:\\bc5\\bgi\\");
outtext ("Here is a rectangle");
rectangle (50,50,200,100);
getch();
outtextxy(10,150,"Here is a line");
line(20,170,300,300);
getch();
outtextxy(400,70,"And here are some circles");
for (r=30;r<=110;r=r+20)
{
c++;
setcolor(c);
circle(500,300,r);
getch();
}
settextstyle(DETECT_FONT, VERT_DIR, 3);
outtextxy(90, 250, "All Done!");
getch();
closegraph;
return 0;
}