gurelcenk
21/01/2007, 13:07
Merhaba
Borland C++ Builder 6 kullanıyorum
console uygulamasında
aşağıdaki kodları çalıştırmak istediğim zaman
Unable to open include file 'graphics.h'
hatasını alıyorum
google'dan araştırdım ancak bir yanıt bulamadım
yardımcı olursanız sevinirim
Saygılar,
#include <graphics.h>
#include <conio.h>
int gdriver, gmode; //global variables
main()
{
initgraph(&gdriver, &gmode, "c:\\tc\\bgi"); //x and y (value = 0) autodetects drivers to be used
setcolor(10);
line(250, 250, 350, 250);
line(350, 250, 350, 350);
line(350, 350, 250, 350);
line(250, 350, 250, 250);
line(250, 250, 300, 200);
line(300, 200, 400, 200);
line(400, 200, 350, 250);
line(400, 200, 400, 300);
line(400, 300, 350, 350);
setcolor(9);
circle(300, 300, 25); //draws a circle with a radius of 25
getch(); //waits for any key to be press
closegraph();
return 0;
}
Borland C++ Builder 6 kullanıyorum
console uygulamasında
aşağıdaki kodları çalıştırmak istediğim zaman
Unable to open include file 'graphics.h'
hatasını alıyorum
google'dan araştırdım ancak bir yanıt bulamadım
yardımcı olursanız sevinirim
Saygılar,
#include <graphics.h>
#include <conio.h>
int gdriver, gmode; //global variables
main()
{
initgraph(&gdriver, &gmode, "c:\\tc\\bgi"); //x and y (value = 0) autodetects drivers to be used
setcolor(10);
line(250, 250, 350, 250);
line(350, 250, 350, 350);
line(350, 350, 250, 350);
line(250, 350, 250, 250);
line(250, 250, 300, 200);
line(300, 200, 400, 200);
line(400, 200, 350, 250);
line(400, 200, 400, 300);
line(400, 300, 350, 350);
setcolor(9);
circle(300, 300, 25); //draws a circle with a radius of 25
getch(); //waits for any key to be press
closegraph();
return 0;
}