I'm just moving from java to c++ and I'm using the following code to start doing c++ graphics in the simplest way possible.

#include"stdio.h"
#include"conio.h"
#include"graphics.h"
#include"alloc.h"
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm," c:\\turboc2\\bgi");
rectangle(100,100,100,100);
closegraph();
}

It works but.... when I leave the "user window" the screen stays
in full screen mode and I can't get my desktop back unil I exit the
turbo C program. ???????

I will need more advice when I move to a more up-to-date graphics system(opengl, directx, etc).

Jerry D.