1/31/00
COM1100 Winter2000 Yuhong Yin
9
How to play the system Beep
sound ?
n
Visual C++ does not support SysBeep(1)
n
Instead, you can use
‘\a’
to play the system
Beep sound.
n
cout << ‘\a’ ;
n
Will play whatever system beep is currently set.
n
cout << “Hello, World ! \n \a” ;