character replacement

This is a discussion on character replacement within the C++ Programming forums, part of the General Programming Boards category; can anyone show me how to write a program that can replace a character with another character but not just ...

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    7

    character replacement

    can anyone show me how to write a program that can replace a character with another character but not just a single character, a group of characters also.

  2. #2
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    Use a loop that increments the index number it is looking at, and changes the character. Java has an edit()function that could be useful.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Using a character array in a switch question.
    By bajanElf in forum C Programming
    Replies: 10
    Last Post: 11-08-2008, 07:06 AM
  2. wide character (unicode) and multi-byte character
    By George2 in forum Windows Programming
    Replies: 6
    Last Post: 05-05-2007, 12:46 AM
  3. <string> to LPCSTR? Also, character encoding: UNICODE vs ?
    By Kurisu33 in forum C++ Programming
    Replies: 7
    Last Post: 10-09-2006, 12:48 AM
  4. Character handling help
    By vandalay in forum C Programming
    Replies: 18
    Last Post: 03-29-2004, 04:32 PM
  5. UNICODE and GET_STATE
    By Registered in forum C++ Programming
    Replies: 1
    Last Post: 07-15-2002, 03:23 PM

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