Manipulators with Parameters

This is a discussion on Manipulators with Parameters within the C++ Programming forums, part of the General Programming Boards category; Hi everybody. At first sorry for my poor english :| I've got a problem with Manipulators with Parameters. I'm trying ...

  1. #1
    Registered User
    Join Date
    May 2005
    Posts
    1

    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
    Posts
    2,572
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

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, 10: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, 02:13 AM
  5. command-line parameters.
    By Tombear in forum C Programming
    Replies: 2
    Last Post: 10-28-2001, 07:40 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21