You can use FreeConsole() & Alloc Console() to detach your apps from the console (It doent really work it you run it from a command prmopt though - only from double clicking the program).......
Code:
#include <windows.h>
#include <iostream>
using namespace std;
int main()
{
cout << "Woohoo...I am on the console!!" << endl;
Sleep(2000);
FreeConsole();
MessageBox(HWND_DESKTOP,
"Woohoo...I have killed the console!!","Sigh :(",
MB_OK | MB_ICONEXCLAMATION);
AllocConsole();
cout << "Woohoo...The console lives again!!" << endl;
Sleep(2000);
FreeConsole();
MessageBox(HWND_DESKTOP,
"Er....that's it!!","Bah!! :(",
MB_OK | MB_ICONEXCLAMATION);
return 0;
}
Once more though...if you are really concerned about your programs on-screen actions, then you should look to building a GUI application....a console isnt built to look nice on screen