Thread: Manipulators with Parameters

  1. #1
    Registered User
    Join Date
    May 2005

    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)

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :-

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Parameters quick Question
    By lifeis2evil in forum C++ Programming
    Replies: 2
    Last Post: 11-18-2007, 11:12 PM
  2. function with variable number of parameters
    By mikahell in forum C++ Programming
    Replies: 3
    Last Post: 07-23-2006, 03:35 PM
  3. Additional parameters for operator delete
    By darksaidin in forum C++ Programming
    Replies: 0
    Last Post: 09-21-2003, 11:46 AM
  4. Passing parameters from VB to C++ through ActiveX DLL
    By torbjorn in forum Windows Programming
    Replies: 0
    Last Post: 12-10-2002, 03:13 AM
  5. command-line parameters.
    By Tombear in forum C Programming
    Replies: 2
    Last Post: 10-28-2001, 08:40 AM