How can i override the manipulator endl. I tried the following thing:
But it doesen´t work. Why? It should. I thing i have some problem with the namespace, maby.Code:#include<iostream> inline ostream& std::endl( ostream& os ) { os << "\n\n\n" << flush; return os; } void main(void) { cout << "hallo" << std::endl; }
Thanks in advance




Reply With Quote