bell manipulator (using escape sequence \a)
#include <iostream> using std::ostream; using std::cout; using std::flush; ostream& bell( ostream& output ) { return output << '\a'; } int main() { cout << bell; return 0; }