I am experimenting with Beep function on Windows:
#include ... Beep(frequency, duration);
The computer then beeps with some f
I'd suggest you look at the source for the beep utility. that does exactly what you want. (specifically, it opens "/dev/console" and uses ioctl to request beep. note this will only work on the attached console)