Feb 10, 2012 at 6:20pm UTC
Hello! for a while I have been trying to make "\a"
work...it doesn`t ,by not working I mean that it makes no BEEP as it should... Any idea? thank you!
Feb 10, 2012 at 6:31pm UTC
@Lynx876 yes but shouldn`t it work if I do something like cout<<"BEEP \a" ;
???
Last edited on Feb 10, 2012 at 6:35pm UTC
Feb 10, 2012 at 6:35pm UTC
@Lynx876 I tried what you said...still no Beep.
Feb 10, 2012 at 6:38pm UTC
The following works fine for me:
cout << '\a' << '\a' << '\a' << '\a' << '\a' ;
Feb 10, 2012 at 6:46pm UTC
@Lynx876 exactly how I thought ,it still doesn`t work . Do I need to enter a header? or maybe because I`m using CodeBlocks doesn`t work? Or maybe because I use a laptop?
...I also tried on other compilers...same. I think it`s because of the PC
Feb 10, 2012 at 6:53pm UTC
The C++ standard doesn't say that '\a' should beep. I can't hear any beep.
Feb 10, 2012 at 7:12pm UTC
I give up. I`m sure that my PC is the problem. Thank you everyone anyway . Have a nice day!