Mandrel
12-14-2000, 01:10 PM
What different functions are available to get a system beep? I did a 'man beep' and that page says to use 'int beep(void)' in curses.h. When I compile using this function, I get an error saying "undefined reference to 'beep' ". I'm guessing it has something to do with the void that is passed in. Is this right? If so, how do I pass in a void?
One more question for ya....I wrote a small life simulation that uses an infinite loop to keep the simulation running. How can I stop the loop by hitting a key on the keyboard, instead of using Control+C to kill it?
Thanks for the help!
One more question for ya....I wrote a small life simulation that uses an infinite loop to keep the simulation running. How can I stop the loop by hitting a key on the keyboard, instead of using Control+C to kill it?
Thanks for the help!