ostream& tab (ostream &o)
{
return o << '\t';
}
I want to put this declaration in iostream library..how can i do this??
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t. The contents of the iostream library are defined by the C++ standard, and potentially shared by every C++ program in the system. Although you can (in practice, this is technically forbidden by the standard) inject things into the
stdnamespace for your own program (this is a bad idea however due to potential name collisions), and you can define things in your own libraries, you can’t just go around modifying common libraries for everyone.