Thread: character replacement

  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
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    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, 08: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, 05:32 PM
  5. UNICODE and GET_STATE
    By Registered in forum C++ Programming
    Replies: 1
    Last Post: 07-15-2002, 03:23 PM