Override ostream : ostream iterator « Console « C++






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";
}
  
    
  








Related examples in the same category

1.Write Output sing an ostream iteratorWrite Output sing an ostream iterator