Results 1 to 3 of 3

Thread: [RESOLVED] a difficult problem

  1. #1

    Thread Starter
    Frenzied Member met0555's Avatar
    Join Date
    Jul 2006
    Posts
    1,385

    Resolved [RESOLVED] a difficult problem

    is there any way to scan the text inputed by user say his name
    and then change the some alphabets in it to some other form

    like suppose i entered the text


    very hard

    and the output shud be

    7Ery h4rd

    that means change every alphabet 'v' to '7'
    ,
    make 'e' = 'E' (capital)

    and

    change every alphabet 'a' in = '4'.

    -----
    in c++.
    thanks

    -------
    any help will be greatly appreciated

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: a difficult problem

    Code:
    myString = myString.Replace('v', '7');
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    Frenzied Member mar_zim's Avatar
    Join Date
    Feb 2004
    Location
    Toledo Cebu City.
    Posts
    1,416

    Re: a difficult problem

    If you have a lot character to change then I suggest you to use HashTable.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width