Manipulators with Parameters
Hi everybody. At first sorry for my poor english :|
I've got a problem with Manipulators with Parameters. I'm trying to code the encrypt(k) manipulator, which guarantees that coded (by k key) stream will be send to ostream, but i don't have any idea in what way can i do it.
i want to code this message "Paris is beatiful town" in this way:
cout<<encrypt(15)<<"Paris is beatiful "<<"town";
but only "Paris is beatiful" has coded. I want to code "town" too.
In other words i want my manipulator won't be a disposable function.
I hope that somebody's understood what i wrote.
I'll be very grateful for any help.
makuda(Institute of IT, University of Wroclaw)