Hi
I try to run my graphic program in the tourbo c++ environment (the system in my computer is windows 7):
#include<graphics.h>
#include<stdio.h>
#include<math.h>
#include<conio.h>
#define pi 3.1415
int main (void)
{
int gdriver=DETECT,gmode,errorcode;
int x,y, pcolor;
double angle,sinofA;
initgraph(&gdriver,&gmode,"..//bgi");
setcolor(6);
line(0,100,200,100);
for(x=0;x<200;x++)
{
angle=((double)x/200)*(2*pi);
sinofA=sin(angle);
y=100+100*sinofA;
putpixel(x,y,9);
}
getch();
closegraph();
return 0;
}
The following Error showed:
this system does not support full screen mode.?