how do I use "\a" without showing the output screen?
I was going through my computer book,and I saw that "\a" can be used to emit a sound in c++,and I tried it as well,but my question is,is it possible to do the same without showing the standard output screen......??
anu07
Junior Poster in Training
66 posts since Jun 2010
Reputation Points: 7
Solved Threads: 5
You can hide the console window if you want to. In MS-Windows you have to use win32 api functions to do it.
#include <windows.h>
int main()
{
HWND hWnd = GetConsoleWindow();
ShowWindow(hWnd,SW_HIDE);
}
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
and umm I am using borland cpp 4.5 for compiling......so like anything tht might be compatible with it? :?
anu07
Junior Poster in Training
66 posts since Jun 2010
Reputation Points: 7
Solved Threads: 5