Couldn't you wrap cout's streambuf in your own, forwarding all calls to the wrapped buffer?
You'd only need to do some encoding before forwarding the "put" calls into the wrapped streambuf. 

It's a lot of work for a little rot13, though.

How can I modify strings that are passed to cout?
If the main criteria of buying new FX camera for landscape photography is low sensor noise, what camera do you suggest to buy (Nikon): D800 ~2.5k, D600 ~1.7k. Does it make sense to pay extra money for this, if noise is almost the same, if it's true?
