In c++ hex,oct manipulators change a number to hex and oct.But I want make an user defined manipulator that will convert a integer output to binary.But I don't know how to pass the stream output integer number to the custom manipulator function or how to use that.Can anyone help me?