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.

void main()
int gd=DETECT,gm;
initgraph(&gd,&gm," c:\\turboc2\\bgi");

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.