Im using CB 16.01 and win 7 OS. I type the following program on CB and build successfully. But when run the output window come and stops working.
#include<iostream>
#include<conio.h>
#include<graphics.h>
using namespace std;
int main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:\\TC\\BGI");
arc(200,200,0,130,50);
getch();
closegraph();
return 0;
}
What should I do?