Program Responses (Beep)
I'm writing a game, and want to know where it's going wrong. In other IDE's, I'd make it beep, easy to code and remove. How can I tell the computer to System beep in C? I tried printf("/a"); and /7 but they don't seem to work.

~ Bring a Pen ~
NSBeep(); will probably do the trick.
Thanks AnotherJake.
~ Bring a Pen ~
putchar('\a') (or printf("\a")) should work in at least some cases, as long as you use the right kind of slash.
Thanks. 






~ Bring a Pen ~
But there's a cooler way. In XCode, you can create a breakpoint, and then hop into the breakpoint editor (opt-cmd-B). Here, you can create the breakpoint to be one that beeps and keeps running.
Just unfold the gray triangle and make it a "sound breakpoint" and check the continue box on the far right.
I used this with great success when debugging my fullscreen switcher - a successful run would mean the "glass", "basso" and "glass" again sequence
Just unfold the gray triangle and make it a "sound breakpoint" and check the continue box on the far right.
I used this with great success when debugging my fullscreen switcher - a successful run would mean the "glass", "basso" and "glass" again sequence

Cool
!

~ Bring a Pen ~