fariha
08-02-2003, 04:26 AM
i try to create graphics in c++, i am using the turbo c editor, at compile time i get 0 errors but when i run the program, no graphics r displayed, why? and how can i fix this problem?
this is the exact code of the program:
#include<stdio.h>
#include<conio.h>
#include<iostream.h>
#include<graphics.h>
void main(void)
{
int a=DETECT,b;
initgraph(&a,&b,"C:\\Turbo\\BGI");
line(200,300,200,500);
closegraph();
getch();
}
ERRORS = ZERO
OUTPUT = BLANK
this is the exact code of the program:
#include<stdio.h>
#include<conio.h>
#include<iostream.h>
#include<graphics.h>
void main(void)
{
int a=DETECT,b;
initgraph(&a,&b,"C:\\Turbo\\BGI");
line(200,300,200,500);
closegraph();
getch();
}
ERRORS = ZERO
OUTPUT = BLANK