Hey, what's the command to let the pc beep. I would'nt have a singel idea![]()
This is a discussion on pc beeping within the C Programming forums, part of the General Programming Boards category; Hey, what's the command to let the pc beep. I would'nt have a singel idea...
Hey, what's the command to let the pc beep. I would'nt have a singel idea![]()
printf("\a");
My best code is written with the delete key.
I think it was something like '\a'........
beep![]()
#include <stdio.h>
main()
{
printf("\a");
return 0;
}
well i have DevBlood compiler but I dont hear any beep at all?
I allways used \007
This is the James Bond beepCode:printf("Say beep \007");![]()
Last edited by maes; 12-09-2001 at 05:48 AM.
SVG is the future
check your conputer setup/hardware, because both \a and \007
work on Bloodshed
Could anyone post an example of a code to let your pc beep, cause i cant hear anything
Maybe im doing something wrong in the source code?
Check that your speaker volume is up. Or put in a CD and see if you can hear it playing. The codes given to you WILL work in Bloodshed Dev.
Code:int main(void){srand(time(0));for(double l=rand(),l0=0,l00=0;;l0+=0.1){for(double l000=0;l000 <1;l000+=.001,l+=((double)rand()/RAND_MAX)/0x64,l00+=((sin(l*0x8*atan(l0)*l000-(l0*0x8*atan (l)))*0.5)+0.5)){l00-=floor(l00);for(size_t l0000=0,l00000=(size_t)(0x50*(l00));l0000<l00000;++l0000 )putchar(0x20);putchar(0x61+(int)((double)rand()/RAND_MAX*0x1a));putchar('\n');}}return 0;}
I don't think putting the volume up or putting a cd in it will make a difference. Because the beep uses an other speaker then your soundcard. The beep uses the same as your BIOS when you boot.
SVG is the future
My volume is up and i can hear a cd playing...
But could anyone please a post a little piece of code that worke by you and gives a beep
here it is:
Code:#include <stdio.h> int main(void) { printf("Say beep \007"); return 0; }
SVG is the future