PDA

View Full Version : BEEP in C++ in Kubuntu 11.10



cylex
December 23rd, 2011, 10:24 PM
#include <curses.h>

// gcc beep.c -obeep -lcurses
/* NOTES
$ apt-get install libcurses-ocaml libcurses-ocaml-dev
*/
int main(void)
{
int beep(void);
beep();
return 0;
}


Is there way to get it to BEEP in Linux, as regular or superuser?

Petrolea
December 24th, 2011, 04:26 PM
There are more ways.

http://lmgtfy.com/?q=beep+in+c%2B%2B+linux