Override ostream
#include <iostream> using namespace std; ostream& attention(ostream& cout) { return(cout << '\a'); }; int main(void){ cout << attention << "The boss is coming to your office...\n"; }