I am trying to make a program which includes a beep noise.I work on a 32 bit Windows Vista.I am using Code::Blocks IDE which runs on a GNU compiler.My sample code is -
#include <stdio.h>
#include <windows.h>
#include <dos.h>
int main(void)
{
Beep(750, 300);
printf("\n \n \t This is a dummy program for Beep.");
getch();
return 0;
}
On Internet I read that we could also use \a in printf to make a beep.I tried that but it is not working.I checked my speakers and sound card.Everything is perfect but I hear no beep.Even the method I displayed in my sample code does not work.Please Help.
Aucun commentaire:
Enregistrer un commentaire