Beeping in the background

Hey all!

I wanted to ask a weird question, i dont even know if its possible, sorry for my noobisheness

I wanted to ask is there a way to do a continuous beeping sound ( Beep(1000,100)
in the background, for example
cin >> number;

and while the user is writing the number it beeps in the background

so is it possible? and if so, how to do it?
Try this:
1
2
3
do {
    std::cout << "\a";
} while (cin >> number)
Nope, doesnt work, just beeps one time :(
You could use threads.
Threads would work.
It is easily possible without threads, but it is a little involved and OS-specific.
Do you absolutely have to do this?
Or can you live with something simpler -- such as a beeping sound until the user starts to enter an answer?
I really need to learn how to do this
Topic archived. No new replies allowed.