My system Specs:
celeron processor
20 GB HDD
100 MB RAM
OS = XP Home
I basically have a Turbo C compiler and I wanted to learn graphics.
I was surfing the net and I went to this site and I compiled the following code :
Expand|Select|Wrap|Line Numbers
- /* simple.c
- example 1.0
- */
- #include<graphics.h>
- #include<conio.h>
- void main()
- {
- int gd=DETECT, gm;
- initgraph(&gd, &gm, "c:\\turboc3\\bgi " );
- circle(200,100,150);
- getch();
- closegraph();
- }
Why?
The bgi dir is correct. I see no reason why it is not working.
Can anyone help?