I'm trying to learn a bit more about the libraries in C / C ++ to do more things so I went behind the graphics.h library and went after the most basic code I found, which was:
#include <graphics.h>
int main(){
int gdriver = DETECT, gmode, errorcode;
char *str = new char[30];
strcpy(str, "d:\tc\bgi");
initgraph(&gdriver,&gmode, str);
arc(200, 200, 0, 130, 50);
closegraph();
return 0;
}
What happens is that the program compiled, opened, stopped responding without executing what I requested and closed