boost::ui::beep — Rings the system bell.
// In header: <boost/ui/audio.hpp> void beep();
See Also:
Beep (Wikipedia)