I'm using DevC++ and I just want to knwo how to program it to make a beep from my computer speaker thast all I woudl liek to put that in a couple of my programs but I can't gfigure out hoq just yet woudl anybody please help me...Thanks
I'm using DevC++ and I just want to knwo how to program it to make a beep from my computer speaker thast all I woudl liek to put that in a couple of my programs but I can't gfigure out hoq just yet woudl anybody please help me...Thanks
the escape sequence is '\a'.
Warning: Opinions subject to change without notice
The C Library Reference Guide
Understand the fundamentals
Then have some more fun
cout << (char)7;
Since your suggestion is system-specific, Krak, it's much better to use caround5h's standard suggestion.
While we're being system specific....
ggCode:#include<windows.h> int main() { MessageBeep(MB_ICONEXCLAMATION); return 0; }
besides cout<<char(7); is much better looking
something like that anywayCode:_asm { invoke beep } _asm