|
From: Per W. <pw...@ia...> - 2003-09-23 06:12:51
|
Note that "\a" stands for 'attention' and is the beep character (ctrl-G)
which is the same as your "\07" character.
And yes it works. But isn't really a beep but a short ping.
/Per W
#include <stdio.h>
int main(void) {
printf("\a"); /* emit first beep */
printf("\07"); /* emit second beep */
return 0;
}
On Mon, 22 Sep 2003, William Mc Coy wrote:
> Hi Guy's.
>
> I'm new to 'C' (NEWBIE). My question! Has anybody ever gotten the "BEEP" function to work in a console program?
>
> Both of the books I'm reading, state by using the '\07' parameter in a printf function will ring the system Bell.
>
> I'v tried using DEV-C++ (GCC) & also the WIN32 compilers, with no results. My OS is XP home edition.
>
> Thanks.
> Everyone have a nice day.
>
> William
>
|