thelearners
Programmer
Hi,
Is '\a' suppose to make a beep sound? It's doesn't beep in my program. I use dev-c++ on window.
Thank for any help.
#include <iostream>
#include <stdlib.h>
int main()
{
int num;
puts("enter 2 will beep");
scanf("%d", &num);
printf("beeping the computer\a\a\a\n");
system("PAUSE");
return 0;
}
Is '\a' suppose to make a beep sound? It's doesn't beep in my program. I use dev-c++ on window.
Thank for any help.
#include <iostream>
#include <stdlib.h>
int main()
{
int num;
puts("enter 2 will beep");
scanf("%d", &num);
printf("beeping the computer\a\a\a\n");
system("PAUSE");
return 0;
}